﻿/* AutoCarInventory shared theme — navy & gold, matching the public
   marketing homepage so the login screens, admin console and customer
   portal all read as one product. */

:root {
    --navy-950: #060e1f;
    --navy-900: #0a1f44;
    --navy-800: #0f2c5c;
    --navy-700: #163a73;
    --gold-500: #c9a227;
    --gold-400: #d9b64a;
    --cream: #f7f4ec;
    --ink: #0d1526;
    --muted: #5b6472;
    --line: #e4e0d3;
    --danger: #b3261e;
    --ok: #1e7e4f;
    --warn: #8a6d1a;
    --info: #1c5fa8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--cream);
    color: var(--ink);
    margin: 0;
}

/* ---------- AUTH PAGES (Login / Reset) ---------- */
.auth-body {
    background: radial-gradient(1200px 600px at 15% -10%, rgba(201, 162, 39, .18), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%);
    min-height: 100vh;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 34px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 24px 60px -20px rgba(6, 14, 31, .55);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--navy-950);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.auth-brand strong {
    display: block;
    color: var(--navy-950);
    font-size: 1.05rem;
}

.auth-brand small {
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-fields label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 14px 0 6px;
}

.auth-input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    font-size: .95rem;
    background: var(--cream);
}

    .auth-input:focus {
        outline: 2px solid var(--gold-400);
        border-color: transparent;
    }

.auth-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--navy-950);
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
}

    .auth-btn:hover {
        opacity: .92;
    }

.auth-btn-outline {
    background: transparent;
    border: 1.5px solid var(--navy-900);
    color: var(--navy-900);
}

.auth-links {
    text-align: center;
    margin-top: 14px;
    font-size: .85rem;
}

    .auth-links a {
        color: var(--navy-800);
        text-decoration: none;
    }

        .auth-links a:hover {
            color: var(--gold-500);
        }

.auth-sub {
    color: var(--muted);
    font-size: .85rem;
    margin: 6px 0 4px;
}

.auth-footnote {
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    margin-top: 20px;
}

    .auth-footnote a {
        color: var(--navy-800);
        font-weight: 600;
    }

.auth-forgot hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 18px 0;
}

.alert-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 14px;
}

.alert-danger-custom {
    background: rgba(179, 38, 30, .08);
    border: 1px solid rgba(179, 38, 30, .3);
    color: var(--danger);
}

.alert-info-custom {
    background: rgba(30, 126, 79, .08);
    border: 1px solid rgba(30, 126, 79, .3);
    color: var(--ok);
}

.alert-warning-custom {
    background: rgba(138, 109, 26, .1);
    border: 1px solid rgba(138, 109, 26, .3);
    color: var(--warn);
}

/* ---------- ADMIN CONSOLE ---------- */
.admin-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy-950);
    color: rgba(247, 244, 236, .85);
    padding: 20px 0;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

    .admin-sidebar .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 20px 20px;
        border-bottom: 1px solid rgba(201, 162, 39, .2);
        margin-bottom: 14px;
        position: relative;
    }

        .admin-sidebar .brand img {
            height: 32px;
        }

    .admin-sidebar .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--navy-950);
        font-weight: 800;
        font-family: Georgia, serif;
        flex-shrink: 0;
    }

    .admin-sidebar .brand strong {
        font-size: .95rem;
        color: #fff;
        white-space: nowrap;
    }

.nav-section {
    margin-bottom: 4px;
}

/* ---------- COLLAPSIBLE NAVIGATION ---------- */
.nav-collapsible .nav-parent {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: .86rem;
    font-weight: 600;
    color: rgba(247, 244, 236, .9);
}

    .nav-collapsible .nav-parent:hover {
        background: rgba(201, 162, 39, 0.08);
    }

    .nav-collapsible .nav-parent .nav-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 0.7rem;
        color: rgba(247, 244, 236, 0.5);
    }

.nav-collapsible .nav-children {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-collapsible.open .nav-children {
    display: block;
}

/* Dashboard link - no arrow, full width */
.nav-link-parent {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 11px 20px !important;
    font-size: .86rem !important;
    font-weight: 600 !important;
    color: rgba(247, 244, 236, .9) !important;
    border-left: none !important;
}

    .nav-link-parent:hover {
        color: var(--gold-400) !important;
        background: rgba(201, 162, 39, .06) !important;
        border-left: none !important;
    }

    .nav-link-parent i {
        width: 20px;
        text-align: center;
    }

.admin-sidebar a.nav-link {
    display: block;
    padding: 8px 20px;
    font-size: .84rem;
    color: rgba(247, 244, 236, .68);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    background: transparent;
    border-right: none;
    width: 100%;
    text-align: left;
}

    .admin-sidebar a.nav-link:hover {
        color: var(--gold-400);
        border-left-color: var(--gold-400);
        background: rgba(201, 162, 39, .06);
    }

    .admin-sidebar a.nav-link.active {
        color: var(--gold-400);
        border-left-color: var(--gold-400);
        background: rgba(201, 162, 39, .08);
    }

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--navy-900);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.admin-user small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-info {
    background: var(--cream);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .weather-info i {
        color: var(--gold-500);
    }

.user-name {
    font-weight: 600;
    color: var(--navy-900);
    font-size: .9rem;
}

.user-role {
    color: var(--muted);
    font-size: .75rem;
}

.admin-content {
    padding: 26px;
    flex: 1;
}

.btn-logout {
    background: transparent;
    border: 1.5px solid var(--navy-900);
    color: var(--navy-900);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .82rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-logout:hover {
        background: var(--navy-900);
        color: #fff;
    }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
    overflow-x: auto;
}

    .panel h2 {
        font-size: 1.1rem;
        color: var(--navy-950);
        margin: 0 0 14px;
    }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
}

    .data-table th {
        text-align: left;
        background: var(--cream);
        color: var(--navy-900);
        padding: 10px 12px;
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 2px solid var(--line);
    }

    .data-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
    }

.status-chip {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.status-Available {
    background: rgba(30, 126, 79, .12);
    color: var(--ok);
}

.status-Reserved {
    background: rgba(201, 162, 39, .15);
    color: var(--warn);
}

.status-Sold {
    background: rgba(91, 100, 114, .15);
    color: var(--muted);
}

/* Reservations.aspx statuses */
.status-Pending {
    background: rgba(138, 109, 26, .12);
    color: var(--warn);
}

.status-Confirmed {
    background: rgba(28, 95, 168, .12);
    color: var(--info);
}

.status-Cancelled {
    background: rgba(179, 38, 30, .1);
    color: var(--danger);
}

.status-Completed {
    background: rgba(30, 126, 79, .12);
    color: var(--ok);
}

/* Inquiries.aspx */
.status-New {
    background: rgba(138, 109, 26, .12);
    color: var(--warn);
}

.status-Contacted {
    background: rgba(28, 95, 168, .12);
    color: var(--info);
}

.status-Closed {
    background: rgba(91, 100, 114, .15);
    color: var(--muted);
}

/* CustomerList.aspx / StaffList.aspx */
.status-Active {
    background: rgba(30, 126, 79, .12);
    color: var(--ok);
}

.status-Inactive {
    background: rgba(91, 100, 114, .15);
    color: var(--muted);
}

.status-Locked {
    background: rgba(179, 38, 30, .1);
    color: var(--danger);
}

/* Notices.aspx */
.status-Published {
    background: rgba(30, 126, 79, .12);
    color: var(--ok);
}

.status-Draft {
    background: rgba(91, 100, 114, .15);
    color: var(--muted);
}

.btn-mini {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: .78rem;
    margin-right: 4px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

    .btn-mini.primary {
        background: var(--navy-900);
        color: #fff;
        border-color: var(--navy-900);
    }

        .btn-mini.primary:hover {
            background: var(--navy-800);
        }

    .btn-mini.danger {
        background: #fff;
        color: var(--danger);
        border-color: var(--danger);
    }

        .btn-mini.danger:hover {
            background: var(--danger);
            color: #fff;
        }

/* =============================================================
   MOBILE HAMBURGER TOGGLE
   ============================================================= */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--navy-900);
    font-size: 1.5rem;
    padding: 4px 8px;
    cursor: pointer;
    position: relative;
    z-index: 101;
}

    .mobile-menu-toggle:hover {
        color: var(--gold-500);
    }

/* Close button inside sidebar */
.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: rgba(247, 244, 236, .7);
    font-size: 1.5rem;
    padding: 4px 8px;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 102;
}

    .sidebar-close:hover {
        color: var(--gold-400);
    }

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 14, 31, 0.6);
    z-index: 98;
}

    .sidebar-overlay.active {
        display: block;
    }

/* =============================================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================================= */

/* ---------- TABLETS & SMALL LAPTOPS ---------- */
@media screen and (max-width: 992px) {
    .admin-sidebar {
        width: 220px;
    }

    .admin-content {
        padding: 20px;
    }

    .panel {
        padding: 18px;
    }
}

/* ---------- MOBILE (768px) ---------- */
@media screen and (max-width: 768px) {
    /* Show hamburger toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    /* Sidebar becomes a slide-out drawer */
    .admin-shell {
        position: relative;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 99;
        transform: translateX(-100%);
        padding-top: 16px;
        padding-bottom: 80px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-right: 2px solid rgba(201, 162, 39, .2);
    }

        .admin-sidebar.open {
            transform: translateX(0);
        }

        /* Brand */
        .admin-sidebar .brand {
            padding: 0 20px 16px;
            border-bottom: 1px solid rgba(201, 162, 39, .2);
            margin-bottom: 10px;
            padding-right: 50px;
        }

            .admin-sidebar .brand strong {
                font-size: .9rem;
            }

        .admin-sidebar .brand-icon {
            width: 30px;
            height: 30px;
            font-size: .9rem;
        }

    /* Navigation - vertical scrolling with touch */
    .nav-section {
        margin-bottom: 2px;
    }

    .nav-collapsible .nav-parent {
        padding: 10px 20px;
        font-size: .82rem;
    }

    .nav-collapsible .nav-children {
        padding-left: 8px;
    }

        .nav-collapsible .nav-children .nav-link {
            padding: 8px 20px 8px 36px;
            font-size: .8rem;
        }

    .nav-collapsible .nav-parent .nav-arrow {
        font-size: 0.65rem;
    }

    .admin-sidebar a.nav-link {
        padding: 8px 20px 8px 32px;
        font-size: .8rem;
        border-left: 2px solid transparent;
    }

        .admin-sidebar a.nav-link:hover {
            border-left-color: var(--gold-400);
            background: rgba(201, 162, 39, .08);
        }

        .admin-sidebar a.nav-link:active {
            background: rgba(201, 162, 39, .15);
            color: var(--gold-400);
        }

    /* Main content */
    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    /* Topbar */
    .admin-topbar {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 6px;
        position: sticky;
        top: 0;
        z-index: 50;
    }

        .admin-topbar .mobile-menu-toggle {
            order: -1;
            padding: 4px 6px;
            font-size: 1.3rem;
        }

        .admin-topbar .admin-user {
            flex: 1;
            justify-content: flex-start;
        }

            .admin-topbar .admin-user .user-details-text {
                display: none;
            }

        .admin-topbar .btn-logout {
            padding: 6px 14px;
            font-size: .75rem;
        }

    .admin-actions .weather-info {
        display: none;
    }

    .admin-content {
        padding: 16px;
    }

    /* Panels */
    .panel {
        padding: 16px;
        overflow-x: auto;
    }

        .panel h2 {
            font-size: 1rem;
        }

    /* Tables - horizontal scroll */
    .data-table {
        font-size: .78rem;
        min-width: 500px;
    }

        .data-table th,
        .data-table td {
            padding: 8px 10px;
        }

        .data-table th {
            font-size: .7rem;
        }

    /* Status chips */
    .status-chip {
        font-size: .65rem;
        padding: 2px 8px;
    }

    .btn-mini {
        font-size: .7rem;
        padding: 4px 10px;
    }
}

/* ---------- SMALL PHONES (480px) ---------- */
@media screen and (max-width: 480px) {
    /* Auth pages */
    .auth-card {
        padding: 24px;
        max-width: 100%;
        margin: 0 12px;
    }

    .auth-brand strong {
        font-size: .9rem;
    }

    .auth-brand-mark {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    /* Sidebar */
    .admin-sidebar {
        width: 260px;
    }

        .admin-sidebar .brand strong {
            font-size: .8rem;
        }

        .admin-sidebar .brand-icon {
            width: 26px;
            height: 26px;
            font-size: .8rem;
        }

    .nav-collapsible .nav-parent {
        font-size: .75rem;
        padding: 8px 16px;
    }

    .nav-collapsible .nav-children .nav-link {
        font-size: .72rem;
        padding: 6px 16px 6px 32px;
    }

    .nav-collapsible .nav-parent .nav-arrow {
        font-size: 0.6rem;
    }

    .admin-sidebar a.nav-link {
        font-size: .72rem;
        padding: 6px 16px 6px 28px;
    }

    .sidebar-close {
        font-size: 1.2rem;
        padding: 6px 12px;
    }

    /* Topbar */
    .admin-topbar {
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
        gap: 4px;
        flex-wrap: wrap;
    }

        .admin-topbar .mobile-menu-toggle {
            font-size: 1.2rem;
            padding: 4px 6px;
        }

    .admin-user {
        gap: 6px;
        flex: 1;
    }

    .avatar-circle {
        width: 28px;
        height: 28px;
        font-size: .7rem;
    }

    .user-name {
        font-size: .8rem;
    }

    .user-role {
        font-size: .65rem;
    }

    .admin-actions {
        gap: 6px;
    }

    .btn-logout {
        padding: 4px 10px;
        font-size: .7rem;
        white-space: nowrap;
    }

        .btn-logout i {
            margin-right: 2px;
        }

    .admin-content {
        padding: 12px;
    }

    .panel {
        padding: 12px;
        border-radius: 10px;
    }

        .panel h2 {
            font-size: .95rem;
            margin-bottom: 10px;
        }

    /* Tables */
    .data-table {
        font-size: .7rem;
        min-width: 400px;
    }

        .data-table th,
        .data-table td {
            padding: 6px 8px;
        }

        .data-table th {
            font-size: .65rem;
            padding: 6px 8px;
        }

    .status-chip {
        font-size: .6rem;
        padding: 2px 6px;
    }

    .btn-mini {
        font-size: .65rem;
        padding: 3px 8px;
        margin: 2px 0;
        display: inline-block;
    }

    /* Feature rows */
    .feature-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

        .feature-row .toggle {
            margin-left: 0;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 8px;
        }
}

/* ---------- VERY SMALL PHONES (360px) ---------- */
@media screen and (max-width: 360px) {
    .auth-card {
        padding: 18px;
    }

    .admin-sidebar {
        width: 240px;
    }

        .admin-sidebar .brand {
            padding: 0 14px 12px;
        }

            .admin-sidebar .brand strong {
                font-size: .7rem;
            }

        .admin-sidebar .brand-icon {
            width: 22px;
            height: 22px;
            font-size: .7rem;
        }

    .nav-collapsible .nav-parent {
        font-size: .68rem;
        padding: 6px 14px;
    }

    .nav-collapsible .nav-children .nav-link {
        font-size: .65rem;
        padding: 5px 14px 5px 28px;
    }

    .admin-sidebar a.nav-link {
        font-size: .65rem;
        padding: 5px 14px 5px 24px;
    }

    .sidebar-close {
        font-size: 1rem;
        padding: 4px 10px;
        top: 4px;
        right: 4px;
    }

    .admin-content {
        padding: 8px;
    }

    .panel {
        padding: 10px;
        border-radius: 8px;
    }

        .panel h2 {
            font-size: .85rem;
        }

    .data-table {
        font-size: .62rem;
        min-width: 320px;
    }

        .data-table th,
        .data-table td {
            padding: 4px 6px;
        }

        .data-table th {
            font-size: .58rem;
            padding: 4px 6px;
        }

    .status-chip {
        font-size: .55rem;
        padding: 1px 5px;
    }

    .btn-mini {
        font-size: .58rem;
        padding: 2px 6px;
    }

    .admin-topbar {
        padding: 6px 8px;
    }

    .btn-logout {
        font-size: .65rem;
        padding: 4px 8px;
    }

    .admin-topbar .mobile-menu-toggle {
        font-size: 1rem;
        padding: 2px 4px;
    }

    .avatar-circle {
        width: 24px;
        height: 24px;
        font-size: .6rem;
    }

    .user-name {
        font-size: .7rem;
    }

    .user-role {
        font-size: .6rem;
    }
}

/* =============================================================
   GRIDVIEW TO MOBILE VISION - Card-based layout for tables
   ============================================================= */

@media screen and (max-width: 480px) {
    /* Convert tables to card-style on mobile */
    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

        .data-table tr {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
        }

        .data-table td {
            padding: 4px 0;
            border-bottom: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: .78rem;
            gap: 8px;
        }

            .data-table td:last-child {
                border-bottom: none;
            }

            /* Add labels as data attributes */
            .data-table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: var(--navy-900);
                font-size: .7rem;
                text-transform: uppercase;
                letter-spacing: .03em;
                flex-shrink: 0;
                min-width: 70px;
            }

            .data-table td .status-chip {
                font-size: .65rem;
                padding: 2px 10px;
            }

            .data-table td .btn-mini {
                font-size: .65rem;
                padding: 3px 10px;
            }
}

/* =============================================================
   UTILITY CLASSES for mobile
   ============================================================= */

/* Stack form fields vertically */
@media screen and (max-width: 480px) {
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .form-row .form-group {
            width: 100%;
        }
}

/* Mobile tabs - full width with icons above text */
@media screen and (max-width: 480px) {
    .tabs-container {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .tab-item {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        border-radius: 8px;
    }

        .tab-item i {
            font-size: 1.2rem;
        }

        .tab-item span {
            font-size: .75rem;
        }
}

/* Feature rows - toggle on top */
@media screen and (max-width: 480px) {
    .feature-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
    }

        .feature-row:last-child {
            border-bottom: none;
        }

        .feature-row .toggle {
            margin-left: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 4px;
        }

            .feature-row .toggle .status-chip {
                font-size: .65rem;
            }
}

/* Mobile-friendly KPI cards grid */
@media screen and (max-width: 480px) {
    .kpi-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 14px 10px;
        text-align: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
    }

        .kpi-card .number {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--navy-900);
        }

        .kpi-card .label {
            font-size: .65rem;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: .04em;
        }
}

@media screen and (max-width: 360px) {
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Admin content improvements */
@media screen and (max-width: 768px) {
    .admin-content {
        padding: 12px;
    }

    .panel {
        margin-bottom: 12px;
    }

    .page-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 1rem;
    }

    .btn-full-mobile {
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* =============================================================
   ADDITIONAL MOBILE FIXES
   ============================================================= */

/* Fix for overlapping elements on mobile */
@media screen and (max-width: 768px) {
    .admin-topbar .mobile-menu-toggle {
        background: transparent;
        border: none;
        color: var(--navy-900);
        font-size: 1.5rem;
        padding: 4px 8px;
        cursor: pointer;
    }

        .admin-topbar .mobile-menu-toggle:hover {
            color: var(--gold-500);
        }

    /* Ensure content doesn't overlap with sidebar */
    .admin-main {
        position: relative;
        z-index: 1;
    }
}

/* Smooth scroll for sidebar */
.admin-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-500) transparent;
}

    .admin-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .admin-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .admin-sidebar::-webkit-scrollbar-thumb {
        background: var(--gold-500);
        border-radius: 10px;
    }

        .admin-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--gold-400);
        }
/* =============================================================
   CUSTOMER PORTAL SPECIFIC STYLES
   ============================================================= */

/* Customer avatar - different color from admin */
#custAvatarInitials {
    background: var(--navy-700);
    color: var(--gold-400);
}

/* Customer navigation link styles */
.customer-nav-link {
    padding: 10px 20px;
    font-size: .9rem;
    color: rgba(247, 244, 236, .8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

    .customer-nav-link:hover {
        color: var(--gold-400);
        border-left-color: var(--gold-400);
        background: rgba(201, 162, 39, .06);
    }

    .customer-nav-link i {
        width: 20px;
        text-align: center;
        color: var(--gold-400);
    }

/* Customer portal topbar adjustments */
.customer-topbar .admin-user {
    flex: 1;
}

    .customer-topbar .admin-user .user-name {
        font-size: .9rem;
    }

    .customer-topbar .admin-user .user-role {
        font-size: .7rem;
        color: var(--muted);
    }

/* Customer welcome banner */
.customer-welcome {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: #fff;
    padding: 30px 35px;
    border-radius: 12px;
    margin-bottom: 25px;
}

    .customer-welcome h1 {
        margin: 0 0 8px 0;
        font-size: 1.8rem;
        font-weight: 300;
    }

        .customer-welcome h1 strong {
            color: var(--gold-400);
            font-weight: 700;
        }

    .customer-welcome p {
        margin: 0;
        opacity: 0.8;
        font-size: .95rem;
    }

/* Customer stats cards */
.customer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.customer-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
}

    .customer-stat-card .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: rgba(201, 162, 39, .1);
        color: var(--gold-500);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

    .customer-stat-card .stat-info h4 {
        margin: 0;
        font-size: .7rem;
        text-transform: uppercase;
        color: var(--muted);
        letter-spacing: .05em;
    }

    .customer-stat-card .stat-info .stat-number {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--navy-900);
    }

/* Mobile adjustments for customer portal */
@media screen and (max-width: 480px) {
    .customer-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .customer-stat-card {
        padding: 14px 16px;
        flex-direction: column;
        text-align: center;
    }

        .customer-stat-card .stat-icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .customer-stat-card .stat-info .stat-number {
            font-size: 1.1rem;
        }

    .customer-welcome {
        padding: 20px;
    }

        .customer-welcome h1 {
            font-size: 1.4rem;
        }
}

@media screen and (max-width: 360px) {
    .customer-stats {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   LOGOUT PAGE STYLES (add to site.css)
   ============================================================= */

.auth-body {
    background: radial-gradient(1200px 600px at 15% -10%, rgba(201, 162, 39, .18), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Ensure logout card works with auth-body */
    .auth-body .logout-wrap {
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

/* Spinner animation */
.fa-spinner {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}