/* =========================================================
   Scrumlin Admin Theme — logo-aligned palette
   Primary Blue:  #00D2FF → #3A7BD5 → #004E92
   Warm Accent:   #FF416C → #FF4B2B → #FDC830
   Cool Accent:   #1D976C → #93F9B9
   Surface:       navy sidebar + cool light content
   ========================================================= */

:root {
    --scrumlin-cyan: #00D2FF;
    --scrumlin-blue: #3A7BD5;
    --scrumlin-blue-dark: #004E92;
    --scrumlin-coral: #FF416C;
    --scrumlin-orange: #FF4B2B;
    --scrumlin-gold: #FDC830;
    --scrumlin-green: #1D976C;
    --scrumlin-lime: #93F9B9;

    /* Surfaces — navy family instead of pure black */
    --scrumlin-navy: #0E2744;
    --scrumlin-navy-mid: #14345A;
    --scrumlin-navy-deep: #0A1C33;
    --scrumlin-sidebar: linear-gradient(180deg, #123A63 0%, #0E2744 45%, #0A1C33 100%);
    --scrumlin-surface: #EEF4FB;
    --scrumlin-card: #FFFFFF;
    --scrumlin-ink: #1B2A41;
    --scrumlin-muted: #6B7C93;

    --scrumlin-radius: 10px;
    --scrumlin-gradient-primary: linear-gradient(135deg, #00D2FF 0%, #3A7BD5 55%, #004E92 100%);
    --scrumlin-gradient-warm: linear-gradient(135deg, #FF416C 0%, #FF4B2B 50%, #FDC830 100%);
    --scrumlin-gradient-cool: linear-gradient(135deg, #1D976C 0%, #93F9B9 100%);
    --scrumlin-gradient-active: linear-gradient(90deg, #1B6BB8 0%, #3A7BD5 55%, #2B8FD4 100%);
}

:root,
[data-bs-theme="light"] {
    --bs-primary: #3A7BD5;
    --bs-primary-rgb: 58, 123, 213;
    --bs-success: #1D976C;
    --bs-success-rgb: 29, 151, 108;
    --bs-warning: #FDC830;
    --bs-warning-rgb: 253, 200, 48;
    --bs-danger: #FF416C;
    --bs-danger-rgb: 255, 65, 108;
    --bs-info: #00D2FF;
    --bs-info-rgb: 0, 210, 255;
    --bs-link-color: #3A7BD5;
    --bs-link-hover-color: #004E92;
    --bs-body-bg: #EEF4FB;
    --bs-body-color: #1B2A41;
}

/* Buttons */
.btn-primary {
    background: var(--scrumlin-gradient-primary) !important;
    border: none !important;
    border-radius: var(--scrumlin-radius) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(58, 123, 213, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #004E92 0%, #3A7BD5 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 78, 146, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--scrumlin-gradient-cool) !important;
    border: none !important;
    color: #0a1c33 !important;
    border-radius: var(--scrumlin-radius) !important;
}

.btn-warning {
    background: var(--scrumlin-gradient-warm) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--scrumlin-radius) !important;
}

.btn,
.form-control,
.form-select,
.card,
.dropdown-menu {
    border-radius: var(--scrumlin-radius) !important;
}

/* ========== Top navbar ========== */
.navbar.sc-header-layout {
    background: #fff;
    border-bottom: 1px solid rgba(58, 123, 213, 0.14);
    box-shadow: 0 2px 12px rgba(14, 39, 68, 0.05);
}

.navbar .sc-brand-panel {
    background: var(--scrumlin-navy-mid) !important;
    border-right: 1px solid rgba(0, 210, 255, 0.12);
}

.navbar .sc-header-panel {
    background: #fff !important;
}

@media (min-width: 992px) {
    .navbar .sc-brand-panel {
        width: 280px;
        padding: 12px 16px;
        height: 97px;
    }

    .navbar .sc-header-panel {
        width: calc(100% - 280px);
        padding-left: 1.25rem;
        height: 97px;
    }

    .sc-sidebar {
        width: 280px;
    }

    .sc-main-panel {
        width: calc(100% - 280px);
    }

    .sc-sidebar-fixed .sc-sidebar {
        position: fixed;
        top: 97px;
        bottom: 0;
        left: 0;
        height: calc(100vh - 97px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 210, 255, 0.35) transparent;
    }

    .sc-sidebar-fixed .sc-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .sc-sidebar-fixed .sc-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sc-sidebar-fixed .sc-sidebar::-webkit-scrollbar-thumb {
        background: rgba(0, 210, 255, 0.35);
        border-radius: 10px;
    }

    .sc-sidebar-fixed .sc-sidebar::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }

    /* Prevent PerfectScrollbar from stacking a second light rail */
    .sc-sidebar-fixed .sc-sidebar .nav {
        max-height: none;
        overflow: visible !important;
    }

    .sc-sidebar-fixed .sc-sidebar .ps__rail-y,
    .sc-sidebar-fixed .sc-sidebar .nav.ps > .ps__rail-y {
        background: transparent !important;
        opacity: 0 !important;
        width: 6px !important;
    }

    .sc-sidebar-fixed .sc-sidebar .ps__thumb-y,
    .sc-sidebar-fixed .sc-sidebar .nav.ps > .ps__rail-y > .ps__thumb-y {
        background: rgba(0, 210, 255, 0.4) !important;
        width: 4px !important;
        border-radius: 10px;
        right: 1px;
    }

    .sc-sidebar-fixed .sc-main-panel {
        margin-left: 280px;
        width: calc(100% - 280px);
    }

    .sc-sidebar-fixed.sc-sidebar-compact .sc-main-panel {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .sc-sidebar-fixed.sc-sidebar-compact .navbar .sc-header-panel {
        width: calc(100% - 70px);
    }

    /* Keep the fixed Scrumlin header aligned with the sidebar while scrolling. */
    .navbar.sc-header-layout.sc-header-scrolled .sc-brand-panel,
    .navbar.sc-header-layout.sc-header-scrolled .sc-header-panel {
        height: 97px !important;
    }
}

.navbar.sc-header-layout.sc-header-scrolled {
    background: #fff;
    border-bottom: 1px solid rgba(58, 123, 213, 0.14);
}

.sc-welcome-enabled .navbar.sc-header-layout.sc-header-scrolled .sc-welcome-title,
.sc-welcome-enabled .navbar.sc-header-layout.sc-header-scrolled .sc-welcome-subtitle,
.navbar.sc-header-layout.sc-header-scrolled .sc-welcome-title,
.navbar.sc-header-layout.sc-header-scrolled .sc-welcome-subtitle {
    display: block !important;
}

.navbar .sc-brand-panel .navbar-brand img,
.navbar .navbar-brand img {
    max-height: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    width: auto !important;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
}

.navbar .navbar-brand.sc-brand-logo {
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.navbar .navbar-brand.sc-brand-logo-compact {
    display: none;
}

.navbar .navbar-brand.sc-brand-logo-compact img {
    max-height: 42px;
    max-width: 42px;
}

.scrumlin-navbar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
}

.scrumlin-navbar-brand-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.scrumlin-navbar-brand-tagline {
    color: rgba(0, 210, 255, 0.8);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.scrumlin-sidebar-toggle {
    border: none !important;
    background: transparent !important;
    color: var(--scrumlin-navy) !important;
    font-size: 1.5rem !important;
    line-height: 1;
    padding: 0.35rem 0.5rem !important;
    margin-right: 0.75rem;
    border-radius: 8px !important;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.scrumlin-sidebar-toggle:hover,
.scrumlin-sidebar-toggle:focus {
    background: rgba(58, 123, 213, 0.12) !important;
    color: var(--scrumlin-blue) !important;
    box-shadow: none !important;
}

.scrumlin-sidebar-toggle .mdi {
    font-size: 1.55rem;
    line-height: 1;
}

.navbar .sc-welcome-title,
.navbar .sc-header-panel .navbar-nav .nav-item .sc-welcome-title {
    color: var(--scrumlin-ink);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 0;
}

.navbar .sc-welcome-title span {
    color: inherit;
    background: none;
    -webkit-text-fill-color: unset;
    font-weight: inherit;
}

.navbar .sc-welcome-title .sc-header-user-highlight {
    color: var(--scrumlin-blue);
    font-weight: 700;
}

.navbar .sc-welcome-subtitle,
.navbar .sc-header-panel .navbar-nav .nav-item .sc-welcome-subtitle {
    color: var(--scrumlin-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0.15rem;
    margin-bottom: 0;
}

.sc-header-greeting {
    padding-left: 0.15rem;
}

.sc-header-scale-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    margin-right: 0.75rem;
    padding: 0.4rem 0.75rem !important;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(58, 123, 213, 0.1) 100%);
    border: 1px solid rgba(58, 123, 213, 0.16);
    border-radius: 10px;
    color: #3A7BD5 !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.sc-header-scale-toggle > i {
    font-size: 1.15rem;
    line-height: 1;
}

.sc-header-scale-toggle > span {
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: center;
}

.sc-header-scale-menu {
    width: 13rem;
    padding: 0.75rem !important;
    border: 1px solid rgba(58, 123, 213, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(14, 39, 68, 0.14) !important;
}

.sc-header-scale-title {
    display: block;
    margin-bottom: 0.55rem;
    color: #0E2744;
    font-size: 0.72rem;
    font-weight: 800;
}

.sc-header-scale-actions {
    display: grid;
    grid-template-columns: 2.1rem 1fr 2.1rem;
    align-items: center;
    gap: 0.45rem;
}

.sc-header-scale-actions button {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    color: #3A7BD5;
    border: 1px solid #DCE7F4;
    border-radius: 8px;
    background: #F5F9FE;
}

.sc-header-scale-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.sc-header-scale-actions strong {
    color: #0E2744;
    font-size: 0.9rem;
    text-align: center;
}

.sc-header-scale-reset {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.45rem;
    color: #64758A;
    border: 0;
    border-radius: 7px;
    background: #F2F5F8;
    font-size: 0.68rem;
    font-weight: 700;
}

.sc-header-datetime {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(58, 123, 213, 0.1) 100%);
    border: 1px solid rgba(58, 123, 213, 0.16);
    border-radius: 10px;
    color: #0E2744;
    white-space: nowrap;
}

.sc-header-datetime-icon {
    font-size: 1.15rem;
    color: #3A7BD5;
    line-height: 1;
}

.sc-header-datetime-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sc-header-date {
    color: #1B2A41;
}

.sc-header-time-sep {
    color: rgba(58, 123, 213, 0.45);
    font-weight: 500;
}

.sc-header-time {
    color: #3A7BD5;
    font-variant-numeric: tabular-nums;
    min-width: 5.6rem;
}

.sc-header-user {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.25rem 0.35rem 0.25rem 0.55rem !important;
    border-radius: 999px;
    border: 1px solid rgba(58, 123, 213, 0.14);
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sc-header-user:hover {
    background: #F7FAFD;
    border-color: rgba(58, 123, 213, 0.28);
}

.sc-header-user-meta {
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.sc-header-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0E2744;
}

.sc-header-user-role {
    font-size: 0.68rem;
    font-weight: 600;
    color: #3A7BD5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sc-header-avatar {
    width: 34px !important;
    height: 34px !important;
    border: 2px solid rgba(58, 123, 213, 0.25);
    object-fit: cover;
}

.sc-dropdown-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(58, 123, 213, 0.2);
}

/* Fallback when the linked employee has no photo yet */
.sc-avatar-initials {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A7BD5 0%, #004E92 100%);
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.sc-header-avatar.sc-avatar-initials {
    font-size: 0.78rem;
}

.sc-dropdown-avatar.sc-avatar-initials {
    font-size: 1.4rem;
}

.sc-header-user-caret {
    color: #7A8BA3;
    font-size: 1rem;
    margin-right: 0.15rem;
}

.navbar .sc-count-indicator .count {
    background: var(--scrumlin-coral) !important;
}

@media (max-width: 991.98px) {
    /* Single compact header row — override desktop 280px brand width */
    .navbar.sc-header-layout {
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        min-height: 56px;
    }

    .navbar .sc-brand-panel {
        width: 56px !important;
        min-width: 56px;
        max-width: 56px;
        height: 56px !important;
        padding: 0 !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .navbar .sc-brand-panel > div {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    .navbar .sc-brand-panel .navbar-brand.sc-brand-logo {
        display: none !important;
    }

    .navbar .sc-brand-panel .navbar-brand.sc-brand-logo-compact {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        width: auto;
        height: auto;
    }

    .navbar .sc-brand-panel .navbar-brand img,
    .navbar .navbar-brand img,
    .navbar .navbar-brand.sc-brand-logo-compact img {
        max-height: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        width: auto !important;
    }

    .navbar .sc-header-panel {
        width: calc(100% - 56px) !important;
        max-width: calc(100% - 56px);
        height: 56px !important;
        min-height: 56px;
        padding: 0 0.5rem 0 0.35rem !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto;
        gap: 0.15rem;
    }

    /* Greeting block is desktop-only; keep it out of the flex row on mobile */
    .navbar .sc-header-panel > .navbar-nav:not(.ms-auto) {
        display: none !important;
    }

    .navbar .sc-header-panel .navbar-nav.ms-auto {
        flex-direction: row;
        align-items: center;
        margin-left: auto !important;
        margin-right: 0;
        padding: 0;
        height: 100%;
        flex-wrap: nowrap;
        flex-shrink: 1;
        min-width: 0;
        gap: 0.1rem;
    }

    .navbar .sc-header-panel .navbar-nav {
        flex-direction: row;
        align-items: center;
        margin: 0;
        padding: 0;
        height: 100%;
    }

    .sc-header-time {
        min-width: 0;
    }

    .navbar .sc-header-panel .navbar-nav .nav-item {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    .navbar .sc-header-panel .navbar-nav .nav-item .nav-link {
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: 0 0.25rem !important;
    }

    .scrumlin-sidebar-toggle {
        display: none !important;
    }

    .navbar .sc-header-panel .navbar-toggler.sc-mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        align-self: center !important;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0 !important;
        border: none;
        border-radius: 8px;
        color: var(--scrumlin-navy) !important;
        font-size: 1.45rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .sc-header-scale-toggle {
        gap: 0;
        margin-right: 0.25rem;
        padding: 0.28rem 0.5rem !important;
        line-height: 1.1;
    }

    .sc-header-scale-toggle > i {
        font-size: 1rem;
    }

    .sc-header-scale-toggle > span {
        display: none;
    }

    .sc-header-datetime {
        padding: 0.28rem 0.5rem;
        margin-right: 0.25rem;
        gap: 0;
        line-height: 1;
    }

    .sc-header-datetime-text {
        font-size: 0.7rem;
        gap: 0.2rem;
        line-height: 1.1;
        align-items: center;
    }

    .sc-header-datetime-icon {
        display: none;
    }

    .sc-header-user {
        padding: 0.15rem !important;
        gap: 0;
        margin: 0;
        height: auto;
        align-items: center;
    }

    .sc-header-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .sc-page-shell {
        padding-top: 56px !important;
        min-height: calc(100vh - 56px);
    }

    .sc-main-panel {
        min-height: calc(100vh - 56px);
        width: 100% !important;
    }

    .sc-sidebar,
    .sc-sidebar-offcanvas {
        width: min(280px, 82vw) !important;
        max-width: 82vw;
        min-height: calc(100vh - 56px);
        top: 56px !important;
        max-height: calc(100vh - 56px) !important;
        height: calc(100vh - 56px) !important;
        right: calc(-1 * min(280px, 82vw)) !important;
        z-index: 1040;
        box-shadow: -8px 0 28px rgba(10, 28, 51, 0.28);
    }

    .sc-sidebar-offcanvas.active {
        right: 0 !important;
    }

    .sc-content {
        padding: 0.85rem 0.85rem 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .sc-header-date {
        display: none;
    }

    .sc-header-time-sep {
        display: none;
    }

    .sc-header-datetime {
        padding: 0.25rem 0.4rem;
        margin-right: 0.15rem;
    }

    .sc-header-datetime-text,
    .sc-header-time {
        font-size: 0.68rem;
    }

    .sc-content {
        padding: 0.7rem 0.65rem 1.1rem !important;
    }
}

/* ========== Sidebar ========== */
.sc-sidebar-dark .sc-sidebar,
.sc-sidebar {
    background: var(--scrumlin-sidebar) !important;
    border-right: 1px solid rgba(0, 210, 255, 0.1);
    z-index: 11;
}

.sc-sidebar .nav .nav-item .nav-link .sc-menu-title {
    color: inherit;
}

.sc-sidebar .nav .nav-item .nav-link {
    color: rgba(230, 242, 255, 0.82) !important;
    border-radius: 10px;
    margin: 3px 12px;
    padding: 0.7rem 1rem !important;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sc-sidebar .nav .nav-item .nav-link:hover {
    background: rgba(0, 210, 255, 0.14) !important;
    color: #fff !important;
}

.sc-sidebar .nav .nav-item .nav-link.active,
.sc-sidebar .nav .nav-item.active > .nav-link {
    background: var(--scrumlin-gradient-active) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--scrumlin-cyan), 0 4px 14px rgba(0, 78, 146, 0.35);
    font-weight: 600;
}

.sc-sidebar .nav .nav-item .nav-link.active .sc-menu-title,
.sc-sidebar .nav .nav-item.active > .nav-link .sc-menu-title {
    color: #fff !important;
    opacity: 1 !important;
}

.sc-sidebar .nav .nav-item .nav-link .sc-menu-icon,
.sc-sidebar .nav .nav-item .nav-link i.sc-menu-icon {
    color: rgba(0, 210, 255, 0.7) !important;
}

.sc-sidebar .nav .nav-item .nav-link:hover .sc-menu-icon,
.sc-sidebar .nav .nav-item .nav-link:hover i.sc-menu-icon {
    color: var(--scrumlin-cyan) !important;
}

.sc-sidebar .nav .nav-item .nav-link.active .sc-menu-icon,
.sc-sidebar .nav .nav-item .nav-link.active i.sc-menu-icon,
.sc-sidebar .nav .nav-item.active > .nav-link .sc-menu-icon,
.sc-sidebar .nav .nav-item.active > .nav-link i.sc-menu-icon {
    color: #fff !important;
}

.sc-sidebar .nav .sc-nav-category {
    color: rgba(253, 200, 48, 0.85) !important;
    opacity: 1;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.85rem;
}

.sc-sidebar .nav .nav-item .collapse .nav .nav-item .nav-link {
    color: rgba(230, 242, 255, 0.7) !important;
}

/* Collapsed sidebar + flyouts */
@media (min-width: 992px) {
    .sc-sidebar-compact .navbar .sc-brand-panel {
        width: 70px !important;
        padding: 12px 8px !important;
        background: var(--scrumlin-navy-mid) !important;
        justify-content: center !important;
    }

    .sc-sidebar-compact .navbar .sc-brand-panel .sc-brand-logo {
        display: none !important;
    }

    .sc-sidebar-compact .navbar .sc-brand-panel .sc-brand-logo-compact {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .sc-sidebar-compact .sc-sidebar {
        width: 70px !important;
        background: var(--scrumlin-sidebar) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 210, 255, 0.35) transparent;
    }

    .sc-sidebar-compact.sc-sidebar-fixed .sc-sidebar .nav,
    .sc-sidebar-compact .sc-sidebar .nav {
        overflow: visible !important;
        max-height: none !important;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item {
        position: relative;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item .nav-link {
        justify-content: center;
        margin: 4px 8px;
        padding: 0.75rem 0.5rem !important;
        text-align: center;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item .nav-link .sc-menu-title,
    .sc-sidebar-compact .sc-sidebar .nav .nav-item .nav-link .badge {
        display: none;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item .nav-link i.sc-menu-icon {
        margin: 0 !important;
        color: rgba(0, 210, 255, 0.8) !important;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item .nav-link.active i.sc-menu-icon,
    .sc-sidebar-compact .sc-sidebar .nav .nav-item .nav-link.active .sc-menu-icon {
        color: #fff !important;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-nav-category {
        display: none !important;
    }

    /* Labels are rendered on a body flyout so overflow:auto can scroll the icons. */
    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-hover-open .nav-link .sc-menu-title {
        display: none !important;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-hover-open .collapse,
    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-hover-open .collapsing {
        display: block !important;
        position: absolute;
        left: 70px;
        top: 100%;
        width: 200px;
        background: var(--scrumlin-navy-mid) !important;
        border-radius: 0 0 10px 0;
        box-shadow: 6px 6px 20px rgba(10, 28, 51, 0.35);
        border: 1px solid rgba(0, 210, 255, 0.15);
        border-top: none;
        z-index: 100;
        padding: 0.25rem 0;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-hover-open .collapse .nav .nav-item .nav-link,
    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-hover-open .collapsing .nav .nav-item .nav-link {
        justify-content: flex-start;
        text-align: left;
        margin: 2px 8px;
        padding: 0.55rem 0.9rem !important;
        color: rgba(230, 242, 255, 0.85) !important;
    }

    .sc-sidebar-compact .sc-sidebar .nav .nav-item.sc-hover-open .collapse .nav .nav-item .nav-link .sc-menu-title {
        display: inline !important;
        position: static;
        width: auto;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        color: inherit !important;
    }
}

.sc-sidebar-flyout {
    display: none;
    position: fixed;
    left: 70px;
    z-index: 20050;
    align-items: center;
    min-width: 160px;
    max-width: 240px;
    padding: 0.65rem 1.25rem;
    margin: 0;
    background: var(--scrumlin-navy-mid);
    color: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 6px 4px 20px rgba(10, 28, 51, 0.35);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-left: none;
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

.sc-sidebar-flyout.is-visible {
    display: flex;
}

.sc-sidebar-flyout.is-active {
    background: #1A4A78;
    box-shadow: inset 3px 0 0 var(--scrumlin-cyan), 6px 4px 20px rgba(10, 28, 51, 0.35);
}

/* ========== Content area ========== */
.sc-content {
    background: var(--scrumlin-surface) !important;
}

.sc-page-shell {
    background: var(--scrumlin-surface);
}

.card {
    background: var(--scrumlin-card) !important;
    border: 1px solid rgba(58, 123, 213, 0.1) !important;
    box-shadow: 0 4px 18px rgba(14, 39, 68, 0.06) !important;
}

.card.bg-primary {
    background: var(--scrumlin-gradient-primary) !important;
}

.card-title {
    color: var(--scrumlin-blue-dark) !important;
}

.badge-primary,
.badge.bg-primary {
    background: var(--scrumlin-gradient-primary) !important;
}

.text-primary {
    color: var(--scrumlin-blue) !important;
}

.text-success {
    color: var(--scrumlin-green) !important;
}

.text-danger {
    color: var(--scrumlin-coral) !important;
}

.sc-footer {
    background: #fff;
    border-top: 1px solid rgba(58, 123, 213, 0.12);
}

.sc-footer a {
    color: var(--scrumlin-blue);
}

/* ========== Auth pages ========== */
.scrumlin-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0, 210, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(255, 65, 108, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 85%, rgba(29, 151, 108, 0.16) 0%, transparent 50%),
        linear-gradient(160deg, #0A1C33 0%, #0E2744 50%, #123A63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.scrumlin-auth-page::before,
.scrumlin-auth-page::after {
    display: none;
}

.scrumlin-auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(14, 39, 68, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 24px 60px rgba(10, 28, 51, 0.45), 0 0 0 1px rgba(58, 123, 213, 0.12);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.scrumlin-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.scrumlin-auth-logo {
    display: block;
    margin: 0;
    max-height: 64px;
    width: auto;
    flex-shrink: 0;
}

.scrumlin-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.scrumlin-brand-name {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin: 0;
}

.scrumlin-brand-tagline {
    color: rgba(0, 210, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
    line-height: 1.3;
}

.scrumlin-auth-card h4 {
    color: #fff;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.scrumlin-auth-card .auth-subtitle {
    color: rgba(230, 242, 255, 0.6);
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.scrumlin-forgot-wrap {
    text-align: center;
}

.scrumlin-forgot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--scrumlin-cyan);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.scrumlin-forgot-link .mdi {
    font-size: 1.15rem;
    line-height: 1;
}

.scrumlin-forgot-link:hover {
    color: var(--scrumlin-gold);
}

.scrumlin-auth-card .form-label {
    color: rgba(230, 242, 255, 0.85);
    font-weight: 500;
}

.scrumlin-auth-card .form-control {
    background: rgba(10, 28, 51, 0.65) !important;
    border: 1px solid rgba(0, 210, 255, 0.28) !important;
    color: #fff !important;
    padding: 0.7rem 0.9rem;
}

.scrumlin-auth-card .form-control:focus {
    border-color: var(--scrumlin-cyan) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 210, 255, 0.2) !important;
}

.scrumlin-auth-card .form-control::placeholder {
    color: rgba(230, 242, 255, 0.35);
}

.scrumlin-auth-card .form-check-label {
    color: rgba(230, 242, 255, 0.75);
}

.scrumlin-auth-card a {
    color: var(--scrumlin-cyan);
    text-decoration: none;
}

.scrumlin-auth-card a:hover {
    color: var(--scrumlin-gold);
}

.scrumlin-auth-card .invalid-feedback,
.scrumlin-auth-card .text-danger {
    color: var(--scrumlin-coral) !important;
}

.scrumlin-auth-accent-bar {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1D976C, #00D2FF, #3A7BD5, #FF4B2B, #FDC830);
    margin-bottom: 1.5rem;
}

/* Page helpers */
.scrumlin-page-title {
    font-weight: 700;
    color: var(--scrumlin-blue-dark);
}

.scrumlin-stat-card {
    border-left: 4px solid transparent;
    border-image: var(--scrumlin-gradient-primary) 1;
}
