/* ========================================
   TaskTrackPro — Global Styles
   ======================================== */

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Selection */
::selection {
    background: #e4e4e7;
    color: #18181b;
}

/* Smooth transitions globally */
* {
    box-sizing: border-box;
}

/* Body defaults */
body {
    font-family: 'Figtree', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page transition */
.page-content {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile sidebar slide-in */
.sidebar-mobile {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.sidebar-mobile.active {
    transform: translateX(0);
}

/* Focus ring utility */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

/* Kbd styling enhancement */
kbd {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   Sterling Red Accent (#DB353B)
   ======================================== */
:root {
    --accent: #DB353B;
    --accent-hover: #c22e33;
    --accent-light: #fef2f2;
}

/* Primary buttons: bg-zinc-900 → Sterling red */
button.bg-zinc-900,
a.bg-zinc-900,
[type="submit"].bg-zinc-900 {
    background-color: var(--accent) !important;
}

button.bg-zinc-900:hover,
a.bg-zinc-900:hover,
button.hover\:bg-zinc-800:hover,
a.hover\:bg-zinc-800:hover,
[type="submit"].hover\:bg-zinc-800:hover {
    background-color: var(--accent-hover) !important;
}

/* Active nav link */
.nav-link.active {
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
}

.nav-link.active iconify-icon {
    color: var(--accent) !important;
}

/* Active filter tabs */
.task-filter-tab.bg-zinc-900 {
    background-color: var(--accent) !important;
}

/* Checkbox accent */
.task-checkbox-box.peer-checked\:bg-zinc-900,
input:checked+.task-checkbox-box {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Focus ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 53, 59, 0.15);
}

/* Selection */
::selection {
    background: rgba(219, 53, 59, 0.12);
    color: #18181b;
}