/* ===================================================
   TABPIA MOBILE NAV FIX v1.1
=================================================== */

.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    background: var(--tp-surface);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--tp-text);
    display: block;
}

.app-sidebar-toggle {
    display: none;
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 1002;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--tp-gradient);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(91,108,251,.32);
    cursor: pointer;
}

.app-sidebar-overlay {
    display: none;
}

@media (max-width: 860px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .site-header__inner {
        position: relative;
        min-height: 64px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        position: absolute !important;
        left: 16px;
        right: 16px;
        top: calc(100% + 10px);
        z-index: 1001;
        display: none !important;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--tp-border);
        border-radius: 22px;
        background: color-mix(in srgb, var(--tp-surface) 97%, transparent);
        box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    }

    .site-nav.is-open {
        display: grid !important;
    }

    .site-nav a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        width: 100%;
        border-radius: 14px;
        color: var(--tp-text-soft);
        font-weight: 900;
        text-decoration: none;
    }

    .site-nav a:hover {
        color: var(--tp-primary);
        background: rgba(91,108,251,.10);
    }

    .site-nav a.tp-btn {
        color: #fff;
        background: var(--tp-gradient);
    }

    .site-nav a.tp-btn:hover {
        color: #fff;
        background: var(--tp-gradient);
    }

    .site-nav .theme-toggle {
        display: flex !important;
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .dashboard-shell {
        display: block;
        min-height: calc(100vh - 64px);
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1003;
        width: min(82vw, 320px);
        height: 100vh;
        padding: 26px 20px;
        border-right: 1px solid var(--tp-border);
        border-bottom: 0;
        background: var(--tp-surface);
        box-shadow: 24px 0 80px rgba(15, 23, 42, .22);
        transform: translateX(-105%);
        transition: transform .24s ease;
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    .dashboard-nav {
        grid-template-columns: 1fr !important;
    }

    .dashboard-nav a {
        min-height: 48px;
        font-size: 16px;
    }

    .app-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1002;
        background: rgba(15, 23, 42, .42);
        backdrop-filter: blur(4px);
    }

    .app-sidebar-overlay.is-open {
        display: block;
    }

    .dashboard-main {
        padding: 28px 16px 96px;
    }
}
/* Account avatar color variations */
.account-avatar--0 { background: linear-gradient(135deg, #586CFB, #00C2AB); }
.account-avatar--1 { background: linear-gradient(135deg, #7D5CFA, #22C55E); }
.account-avatar--2 { background: linear-gradient(135deg, #F97316, #EC4899); }
.account-avatar--3 { background: linear-gradient(135deg, #2563EB, #7C3AED); }
.account-avatar--4 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.account-avatar--5 { background: linear-gradient(135deg, #10B981, #84CC16); }