/* Custom styles for enhanced animations and accessibility */
:root {
    --zen-primary: #4ade80;
    --zen-secondary: #f97316;
    --zen-surface: #0f172a;
    --zen-surface-variant: #1e293b;
    --zen-on-surface: #f8fafc;
    --zen-on-surface-variant: #cbd5e1;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--zen-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--zen-surface-variant);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zen-on-surface-variant);
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--zen-primary);
    outline-offset: 2px;
}

/* Input number spinner styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Progress ring animation */
#progress-ring {
    transition: stroke-dashoffset 1s linear;
}

/* Button hover effects */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}