/* Base style overrides that are easier to define here than in Tailwind utilities */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Timer Number font for better monospaced display to avoid jitter */
.timer-text {
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

/* Custom checkbox styles */
.task-checkbox:checked {
    background-color: #ef4444; /* red */
    border-color: #ef4444;
}

body.theme-green .task-checkbox:checked {
    background-color: #10b981;
}

body.theme-blue .task-checkbox:checked {
    background-color: #3b82f6;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

/* Focus styles for keyboard accessibility */
button:focus-visible, 
input:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.dark button:focus-visible, 
.dark input:focus-visible {
    outline-color: #94a3b8;
}

/* Input placeholders */
input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.dark input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
