:root {
            /* NellaiSpace Brand */
            --deep-navy: #001A3D;
            --navy-blue: #002654;

            --metallic-gold: #D99A22;
            --bright-gold: #F4BF43;
            --champagne-gold: #FFE8A6;
            --warm-cream: #FFF1C7;

            --leaf-green: #84B800;
            --dark-leaf-green: #416F00;

            --white: #FFFFFF;

            /* UI */
            --background: #F7F8FA;
            --surface: #FFFFFF;
            --surface-muted: #FAFAF8;

            --text: #001A3D;
            --text-muted: #687386;

            --border: #E7E9ED;

            --danger: #D92D20;
            --danger-soft: #FFF1F0;

            --sidebar-width: 276px;

            --shadow-sm:
                0 1px 3px rgba(0, 26, 61, 0.04),
                0 5px 16px rgba(0, 26, 61, 0.04);

            --shadow-md:
                0 8px 30px rgba(0, 26, 61, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            min-height: 100vh;
            background: var(--background);
            color: var(--text);
            font-family: "Inter", sans-serif;
            
        }

        button,
        input,
        select {
            font: inherit;
        }

        button,
        a {
            -webkit-tap-highlight-color: transparent;
        }

        button {
            cursor: pointer;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        /* ==========================================
           SIDEBAR
        ========================================== */

        .sidebar {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;

            width: var(--sidebar-width);

            display: flex;
            flex-direction: column;

            background:
                radial-gradient(
                    circle at 0% 0%,
                    rgba(244, 191, 67, 0.08),
                    transparent 32%
                ),
                linear-gradient(
                    180deg,
                    var(--navy-blue),
                    var(--deep-navy)
                );

            border-right: 1px solid rgba(255, 255, 255, 0.05);

            z-index: 1000;

            transition: transform 0.3s ease;
        }

        /* Logo */

        .sidebar-brand {
            min-height: 100px;

            display: flex;
            align-items: center;
            padding: 18px 24px;

            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .logo-link {
            width: 100%;

            display: flex;
            align-items: center;
        }

        .nellaispace-logo {
            display: block;
            width: 165px;
            max-width: 100%;
            max-height: 64px;

            object-fit: contain;
            object-position: center;
        }

        /* Admin */

        .admin-profile {
            display: flex;
            align-items: center;
            gap: 12px;

            padding: 25px 22px 20px;
        }

        .admin-avatar {
            width: 45px;
            height: 45px;

            display: grid;
            place-items: center;

            flex-shrink: 0;

            border-radius: 14px;

            background: linear-gradient(
                135deg,
                var(--metallic-gold),
                var(--bright-gold)
            );

            color: var(--deep-navy);

            font-size: 13px;
            font-weight: 800;

            box-shadow:
                0 7px 20px rgba(217, 154, 34, 0.18);
        }

        .admin-details strong {
            display: block;

            margin-bottom: 4px;

            color: var(--white);

            font-size: 13px;
            font-weight: 700;
        }

        .admin-details span {
            color: rgba(255, 255, 255, 0.55);

            font-size: 11px;
        }

        /* Navigation */

        .nav-section {
            margin: 13px 12px 8px;

            color: rgba(255, 255, 255, 0.35);

            font-size: 9px;
            font-weight: 700;

            letter-spacing: 1.2px;

            text-transform: uppercase;
        }

        .nav-item {
            min-height: 49px;

            display: flex;
            align-items: center;

            gap: 13px;

            margin-bottom: 5px;

            padding: 0 14px;

            position: relative;

            border-radius: 12px;

            color: rgba(255, 255, 255, 0.68);

            font-size: 13px;
            font-weight: 500;

            transition:
                background 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
        }

        .nav-item svg {
            width: 19px;
            height: 19px;

            flex-shrink: 0;

            stroke-width: 1.8;
        }

        .nav-item:hover {
            color: var(--white);

            background: rgba(255, 255, 255, 0.07);

            transform: translateX(2px);
        }

        .nav-item.active {
            color: var(--deep-navy);

            background: linear-gradient(
                135deg,
                var(--bright-gold),
                #FFD46E
            );

            font-weight: 700;

            box-shadow:
                0 7px 22px rgba(244, 191, 67, 0.18);
        }

        .nav-item.active svg {
            stroke-width: 2.1;
        }

        /* Logout */

        .sidebar-footer {
            padding: 14px 13px 20px;

            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .logout {
            color: #FFB4AE;
        }

        .logout:hover {
            color: #FFFFFF;
            background: rgba(217, 45, 32, 0.16);
        }

        /* ==========================================
           MAIN
        ========================================== */

        .main {
            min-height: 100vh;

            margin-left: var(--sidebar-width);
        }

        /* Top bar */

        .topbar {
            height: 80px;

            position: sticky;
            top: 0;

            z-index: 100;

            display: flex;
            align-items: center;
            justify-content: space-between;

            padding: 0 32px;

            background: rgba(255, 255, 255, 0.92);

            backdrop-filter: blur(16px);

            border-bottom: 1px solid var(--border);
        }

        .topbar-left {
            display: flex;
            align-items: center;

            gap: 14px;
        }

        .mobile-menu {
            width: 42px;
            height: 42px;

            display: none;
            place-items: center;

            border: 1px solid var(--border);
            border-radius: 11px;

            background: var(--white);

            color: var(--deep-navy);
        }

        .mobile-menu svg {
            width: 20px;
        }

        .page-title h1 {
            margin-bottom: 4px;

            font-size: 19px;
            font-weight: 750;

            letter-spacing: -0.4px;
        }

        .page-title p {
            color: var(--text-muted);

            font-size: 11px;
        }

        .topbar-right {
            display: flex;
            align-items: center;

            gap: 10px;
        }

        .topbar-icon {
            width: 40px;
            height: 40px;

            display: grid;
            place-items: center;

            position: relative;

            border: 1px solid var(--border);
            border-radius: 11px;

            background: var(--white);

            color: var(--deep-navy);
        }

        .topbar-icon svg {
            width: 18px;
            height: 18px;
        }

        .notification-indicator {
            width: 7px;
            height: 7px;

            position: absolute;

            top: 7px;
            right: 7px;

            border: 2px solid white;
            border-radius: 50%;

            background: var(--leaf-green);
        }

        .topbar-profile {
            min-height: 42px;

            display: flex;
            align-items: center;

            gap: 8px;

            padding: 4px 10px 4px 5px;

            border: 1px solid var(--border);
            border-radius: 12px;

            background: var(--white);
        }

        .topbar-avatar {
            width: 32px;
            height: 32px;

            display: grid;
            place-items: center;

            border-radius: 9px;

            background: var(--warm-cream);

            color: var(--deep-navy);

            font-size: 10px;
            font-weight: 800;
        }

        .topbar-profile span {
            font-size: 11px;
            font-weight: 600;
        }

        /* ==========================================
           CONTENT
        ========================================== */

        /* .content {
            width: 100%;
            max-width: 1650px;

            margin: 0 auto;

            padding: 29px 32px 45px;
        } */

        /* Welcome */

        .welcome {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;

            gap: 20px;

            margin-bottom: 26px;
        }

        .welcome h2 {
            margin-bottom: 7px;

            color: var(--deep-navy);

            font-size: 24px;
            font-weight: 750;

            letter-spacing: -0.7px;
        }

        .welcome p {
            color: var(--text-muted);

            font-size: 13px;
        }

        .add-property-btn {
            min-height: 44px;

            display: inline-flex;
            align-items: center;
            justify-content: center;

            gap: 8px;

            padding: 0 17px;

            border: none;
            border-radius: 11px;

            background: linear-gradient(
                135deg,
                var(--metallic-gold),
                var(--bright-gold)
            );

            color: var(--deep-navy);

            font-size: 12px;
            font-weight: 750;

            box-shadow:
                0 8px 20px rgba(217, 154, 34, 0.2);

            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .add-property-btn:hover {
            transform: translateY(-2px);

            box-shadow:
                0 12px 25px rgba(217, 154, 34, 0.25);
        }

        /* ==========================================
           STATS
        ========================================== */

        .stats-grid {
            display: grid;

            grid-template-columns:
                repeat(5, minmax(0, 1fr));

            gap: 15px;

            margin-bottom: 23px;
        }

        .stat-card {
            min-height: 142px;

            padding: 19px;

            border: 1px solid var(--border);
            border-radius: 17px;

            background: var(--white);

            box-shadow: var(--shadow-sm);

            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .stat-card:hover {
            transform: translateY(-3px);

            box-shadow: var(--shadow-md);
        }

        .stat-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;

            margin-bottom: 17px;
        }

        .stat-icon {
            width: 42px;
            height: 42px;

            display: grid;
            place-items: center;

            border-radius: 12px;
        }

        .stat-icon svg {
            width: 20px;
            height: 20px;
        }

        .stat-icon.navy {
            background: #EDF2F8;
            color: var(--deep-navy);
        }

        .stat-icon.green {
            background: #F0F7DF;
            color: var(--dark-leaf-green);
        }

        .stat-icon.gold {
            background: var(--warm-cream);
            color: #A36B00;
        }

        .stat-icon.champagne {
            background: #FFF8E8;
            color: var(--metallic-gold);
        }

        .stat-icon.dark {
            background: #E9EEF4;
            color: var(--navy-blue);
        }

        .stat-change {
            padding: 5px 7px;

            border-radius: 7px;

            background: #F1F8E4;

            color: var(--dark-leaf-green);

            font-size: 9px;
            font-weight: 700;
        }

        .stat-number {
            margin-bottom: 4px;

            color: var(--deep-navy);

            font-size: 26px;
            font-weight: 800;

            letter-spacing: -0.7px;
        }

        .stat-label {
            color: var(--text-muted);

            font-size: 11px;
            font-weight: 500;
        }

        /* ==========================================
           PANELS
        ========================================== */

        .dashboard-row {
            display: grid;

            grid-template-columns:
                minmax(0, 1.6fr)
                minmax(280px, 0.7fr);

            gap: 20px;

            margin-bottom: 23px;
        }

        .panel {
            overflow: hidden;

            border: 1px solid var(--border);
            border-radius: 18px;

            background: var(--white);

            box-shadow: var(--shadow-sm);
        }

        .panel-header {
            min-height: 70px;

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 15px;

            padding: 19px 21px;

            border-bottom: 1px solid var(--border);
        }

        .panel-header h3 {
            margin-bottom: 4px;

            color: var(--deep-navy);

            font-size: 14px;
            font-weight: 700;
        }

        .panel-header p {
            color: var(--text-muted);

            font-size: 10px;
        }

        .view-all {
            color: var(--metallic-gold);

            font-size: 11px;
            font-weight: 700;
        }

        /* ==========================================
           SALE / RENT
        ========================================== */

        .property-overview {
            display: grid;

            grid-template-columns: 1fr 1fr;

            gap: 14px;

            padding: 20px;
        }

        .overview-card {
            padding: 20px;

            border: 1px solid var(--border);
            border-radius: 14px;

            background: var(--surface-muted);
        }

        .overview-heading {
            display: flex;
            align-items: center;

            gap: 9px;

            margin-bottom: 17px;

            color: var(--deep-navy);

            font-size: 12px;
            font-weight: 650;
        }

        .overview-dot {
            width: 9px;
            height: 9px;

            border-radius: 50%;

            background: var(--metallic-gold);
        }

        .overview-dot.green {
            background: var(--leaf-green);
        }

        .overview-number {
            margin-bottom: 5px;

            color: var(--deep-navy);

            font-size: 29px;
            font-weight: 800;

            letter-spacing: -0.8px;
        }

        .overview-description {
            color: var(--text-muted);

            font-size: 10px;
        }

        /* ==========================================
           QUICK ACTIONS
        ========================================== */

        .quick-actions {
            padding: 11px;
        }

        .quick-action {
            width: 100%;

            display: flex;
            align-items: center;

            gap: 11px;

            padding: 12px;

            border-radius: 11px;

            transition: background 0.2s ease;
        }

        .quick-action:hover {
            background: #FBF8F0;
        }

        .quick-icon {
            width: 38px;
            height: 38px;

            display: grid;
            place-items: center;

            flex-shrink: 0;

            border-radius: 10px;

            background: var(--warm-cream);

            color: var(--deep-navy);
        }

        .quick-icon.green {
            background: #F0F7DF;
            color: var(--dark-leaf-green);
        }

        .quick-icon.navy {
            background: #EDF2F8;
            color: var(--navy-blue);
        }

        .quick-icon svg {
            width: 17px;
            height: 17px;
        }

        .quick-action strong {
            display: block;

            margin-bottom: 3px;

            color: var(--deep-navy);

            font-size: 11px;
            font-weight: 650;
        }

        .quick-action span {
            color: var(--text-muted);

            font-size: 9px;
        }

        /* ==========================================
           TABLE
        ========================================== */

        .table-container {
            width: 100%;

            overflow-x: auto;
        }

        .property-table {
            width: 100%;

            min-width: 850px;

            border-collapse: collapse;
        }

        .property-table th {
            padding: 12px 20px;

            background: #FAFAF8;

            color: #7A8492;

            font-size: 9px;
            font-weight: 700;

            letter-spacing: 0.4px;

            text-align: left;
            text-transform: uppercase;
        }

        .property-table td {
            padding: 14px 20px;

            border-top: 1px solid var(--border);

            color: var(--deep-navy);

            font-size: 11px;

            vertical-align: middle;
        }

        .property {
            display: flex;
            align-items: center;

            gap: 11px;
        }

        .property-image {
            width: 50px;
            height: 43px;

            display: grid;
            place-items: center;

            flex-shrink: 0;

            border-radius: 9px;

            background:
                linear-gradient(
                    135deg,
                    var(--warm-cream),
                    var(--champagne-gold)
                );

            color: var(--deep-navy);
        }

        .property-image svg {
            width: 20px;
        }

        .property-details strong {
            display: block;

            margin-bottom: 4px;

            font-size: 11px;
        }

        .property-details span {
            color: var(--text-muted);

            font-size: 9px;
        }

        .purpose {
            display: inline-flex;

            padding: 5px 9px;

            border-radius: 7px;

            background: var(--warm-cream);

            color: #815700;

            font-size: 9px;
            font-weight: 700;
        }

        .status {
            display: inline-flex;
            align-items: center;

            gap: 5px;

            padding: 5px 9px;

            border-radius: 20px;

            font-size: 9px;
            font-weight: 700;
        }

        .status::before {
            content: "";

            width: 5px;
            height: 5px;

            border-radius: 50%;
        }

        .status.active {
            background: #F0F7DF;
            color: var(--dark-leaf-green);
        }

        .status.active::before {
            background: var(--leaf-green);
        }

        .status.draft {
            background: var(--warm-cream);
            color: #8B6000;
        }

        .status.draft::before {
            background: var(--metallic-gold);
        }

        .table-actions {
            display: flex;

            gap: 6px;
        }

        .table-btn {
            width: 31px;
            height: 31px;

            display: grid;
            place-items: center;

            border: 1px solid var(--border);
            border-radius: 8px;

            background: var(--white);

            color: var(--deep-navy);

            transition: 0.2s ease;
        }

        .table-btn:hover {
            border-color: var(--bright-gold);

            background: var(--warm-cream);
        }

        .table-btn svg {
            width: 13px;
        }

        /* ==========================================
           MOBILE
        ========================================== */

        .sidebar-overlay {
            display: none;
        }

        @media (max-width: 1200px) {
            .stats-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 950px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main {
                margin-left: 0;
            }

            .mobile-menu {
                display: grid;
            }

            .sidebar-overlay {
                position: fixed;

                inset: 0;

                z-index: 900;

                background: rgba(0, 26, 61, 0.55);

                backdrop-filter: blur(2px);
            }

            .sidebar-overlay.show {
                display: block;
            }

            .dashboard-row {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 700px) {
            .topbar {
                height: 70px;

                padding: 0 16px;
            }

            .content {
                padding: 22px 16px 35px;
            }

            .page-title p {
                display: none;
            }

            .topbar-profile span {
                display: none;
            }

            .welcome {
                flex-direction: column;
                align-items: stretch;
            }

            .add-property-btn {
                width: 100%;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .property-overview {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 470px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .welcome h2 {
                font-size: 21px;
            }
        }

/* ========================================
   SIDEBAR
======================================== */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: linear-gradient(
        180deg,
        #002B5D 0%,
        var(--navy-blue) 45%,
        var(--deep-navy) 100%
    );

    transition: transform 0.3s ease;
}


/* ========================================
   LOGO
======================================== */

.sidebar-logo {
    height: 108px !important;
    min-height: 108px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 20px;

    flex-shrink: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    display: block;

    width: 155px;
    max-width: 100%;
    max-height: 72px;

    object-fit: contain;
}


/* ========================================
   SIDEBAR ADMIN
======================================== */

.sidebar-admin {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 23px 21px;

    flex-shrink: 0;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        var(--metallic-gold),
        var(--bright-gold)
    );

    color: var(--deep-navy);

    font-size: 12px;
    font-weight: 800;
}

.sidebar-admin-info {
    min-width: 0;
}

.sidebar-admin-info strong {
    display: block;

    margin-bottom: 5px;

    overflow: hidden;

    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-admin-info span {
    display: block;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;
}


/* ========================================
   NAVIGATION
======================================== */

.sidebar-nav {
    flex: 1;
    min-height: 0;

    /* Important: removes internal scrollbar */
    overflow: hidden;

    padding: 8px 12px 10px;
}

.nav-heading {
    margin: 4px 11px 8px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.nav-link {
    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 4px;

    padding: 0 14px;

    border-radius: 13px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 12px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.nav-link svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--white);

    background: rgba(255, 255, 255, 0.07);

    transform: translateX(2px);
}


/* ========================================
   ACTIVE PAGE
======================================== */

.nav-link.active {
    color: var(--deep-navy);

    background: linear-gradient(
        135deg,
        var(--bright-gold),
        #FFD875
    );

    font-weight: 700;

    box-shadow:
        0 7px 20px rgba(244, 191, 67, 0.12);
}

.nav-link.active svg {
    stroke: var(--deep-navy);
}


/* ========================================
   LOGOUT
======================================== */

.sidebar-footer {
    flex-shrink: 0;

    padding: 10px 12px 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-footer .nav-link {
    margin-bottom: 0;
}

.nav-link.logout {
    color: #FFAAA3;
}

.nav-link.logout:hover {
    color: #FFFFFF;

    background: rgba(217, 45, 32, 0.15);
}


/* ========================================
   MAIN CONTENT POSITION
======================================== */

.main {
    min-height: 100vh;

    margin-left: var(--sidebar-width);
}


/* ========================================
   RESPONSIVE SIDEBAR
======================================== */

.sidebar-overlay {
    display: none;
}

@media (max-width: 1050px) {

    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        transform: translateX(-100%);

        box-shadow:
            20px 0 50px rgba(0, 26, 61, 0.2);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .mobile-menu {
        display: grid;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;

        z-index: 900;

        background: rgba(0, 26, 61, 0.55);

        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        display: block;
    }
}  /* ========================================
           MAIN
        ======================================== */

        .main {
            min-height: 100vh;

            margin-left: var(--sidebar-width);
        }

        /* ========================================
           TOP BAR
        ======================================== */

        .topbar {
            height: 110px;

            position: sticky;
            top: 0;

            z-index: 500;

            display: flex;
            align-items: center;
            justify-content: space-between;

            padding: 0 40px;

            background: rgba(255, 255, 255, 0.94);

            backdrop-filter: blur(18px);

            border-bottom: 1px solid var(--border);
        }

        .topbar-left {
            display: flex;
            align-items: center;

            gap: 16px;
        }

        .mobile-menu {
            width: 44px;
            height: 44px;

            display: none;
            place-items: center;

            border: 1px solid var(--border);
            border-radius: 12px;

            background: var(--white);

            color: var(--deep-navy);
        }

        .mobile-menu svg {
            width: 21px;
            height: 21px;
        }

        .page-heading h1 {
            margin-bottom: 6px;

            font-size: 24px;
            font-weight: 800;

            letter-spacing: -0.7px;
        }

        .page-heading p {
            color: var(--text-muted);

            font-size: 13px;
        }

        /* Top right */

        .topbar-actions {
            display: flex;
            align-items: center;

            gap: 14px;
        }

        .notification-button {
            width: 50px;
            height: 50px;

            position: relative;

            display: grid;
            place-items: center;

            border: 1px solid var(--border);
            border-radius: 14px;

            background: var(--white);

            color: var(--deep-navy);
        }

        .notification-button svg {
            width: 21px;
            height: 21px;
        }

        .notification-dot {
            width: 8px;
            height: 8px;

            position: absolute;

            top: 10px;
            right: 10px;

            border: 2px solid var(--white);
            border-radius: 50%;

            background: var(--leaf-green);
        }

        /* ========================================
           ADMIN DROPDOWN
        ======================================== */

        .profile-dropdown {
            position: relative;
        }

        .profile-trigger {
            min-height: 50px;

            display: flex;
            align-items: center;

            gap: 10px;

            padding: 5px 12px 5px 6px;

            border: 1px solid var(--border);
            border-radius: 14px;

            background: var(--white);

            color: var(--deep-navy);
        }

        .profile-trigger-avatar {
            width: 38px;
            height: 38px;

            display: grid;
            place-items: center;

            border-radius: 11px;

            background: var(--warm-cream);

            font-size: 11px;
            font-weight: 800;
        }

        .profile-trigger-name {
            font-size: 12px;
            font-weight: 700;
        }

        .dropdown-arrow {
            width: 15px;
            height: 15px;

            margin-left: 2px;

            transition: transform 0.2s ease;
        }

        .profile-dropdown.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .dropdown-menu {
            width: 265px;

            position: absolute;

            top: calc(100% + 12px);
            right: 0;

            visibility: hidden;

            opacity: 0;

            transform: translateY(-8px);

            padding: 9px;

            border: 1px solid var(--border);
            border-radius: 17px;

            background: var(--white);

            box-shadow: var(--shadow-dropdown);

            transition:
                opacity 0.18s ease,
                transform 0.18s ease,
                visibility 0.18s;
        }

        .profile-dropdown.open .dropdown-menu {
            visibility: visible;

            opacity: 1;

            transform: translateY(0);
        }

        .dropdown-user {
            display: flex;
            align-items: center;

            gap: 11px;

            padding: 12px;

            margin-bottom: 6px;

            border-radius: 12px;

            background: #FBFAF5;
        }

        .dropdown-avatar {
            width: 42px;
            height: 42px;

            display: grid;
            place-items: center;

            flex-shrink: 0;

            border-radius: 12px;

            background:
                linear-gradient(
                    135deg,
                    var(--metallic-gold),
                    var(--bright-gold)
                );

            color: var(--deep-navy);

            font-size: 11px;
            font-weight: 800;
        }

        .dropdown-user strong {
            display: block;

            margin-bottom: 3px;

            font-size: 11px;
        }
  .profile-dropdown a:hover {
            background: #F6F8FC;
        }
        .dropdown-user span {
            display: block;

            max-width: 160px;

            overflow: hidden;

            color: var(--text-muted);

            font-size: 9px;

            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dropdown-divider {
            height: 1px;

            margin: 6px 4px;

            background: var(--border);
        }

        .dropdown-link {
            min-height: 43px;

            display: flex;
            align-items: center;

            gap: 11px;

            padding: 0 11px;

            border-radius: 10px;

            color: var(--deep-navy);

            font-size: 11px;
            font-weight: 600;

            transition: background 0.18s ease;
        }

        .dropdown-link svg {
            width: 17px;
            height: 17px;

            color: #6B778C;
        }

        .dropdown-link:hover {
            background: var(--warm-cream);
        }

        .dropdown-link.danger {
            color: var(--danger);
        }

        .dropdown-link.danger svg {
            color: var(--danger);
        }

        .dropdown-link.danger:hover {
            background: var(--danger-soft);
        }

        /* ========================================
           PAGE CONTENT
        ======================================== */

        .content {
            width: 100%;
            max-width: 1500px;

            margin: 0 auto;

            padding: 40px;
        }

        .page-intro {
            margin-bottom: 27px;
        }

        .page-intro h2 {
            margin-bottom: 7px;

            font-size: 25px;
            font-weight: 800;

            letter-spacing: -0.7px;
        }

        .page-intro p {
            color: var(--text-muted);

            font-size: 13px;
        }

        /* ========================================
           PROFILE GRID
        ======================================== */

        .profile-grid {
            display: grid;

            grid-template-columns:
                minmax(280px, 0.7fr)
                minmax(0, 1.7fr);

            gap: 22px;
        }

        .card {
            overflow: hidden;

            border: 1px solid var(--border);
            border-radius: 20px;

            background: var(--white);

            box-shadow: var(--shadow-sm);
        }

        /* Profile summary */

        .profile-summary {
            padding: 32px 25px;

            text-align: center;
        }

        .large-avatar {
            width: 105px;
            height: 105px;

            display: grid;
            place-items: center;

            margin: 0 auto 19px;

            position: relative;

            border: 6px solid #FFF8E6;
            border-radius: 30px;

            background:
                linear-gradient(
                    135deg,
                    var(--metallic-gold),
                    var(--bright-gold)
                );

            color: var(--deep-navy);

            font-size: 28px;
            font-weight: 800;
        }

        .online-dot {
            width: 18px;
            height: 18px;

            position: absolute;

            right: -2px;
            bottom: 6px;

            border: 4px solid white;
            border-radius: 50%;

            background: var(--leaf-green);
        }

        .profile-summary h3 {
            margin-bottom: 6px;

            font-size: 18px;
        }

        .profile-role {
            margin-bottom: 17px;

            color: var(--text-muted);

            font-size: 12px;
        }

        .active-badge {
            display: inline-flex;
            align-items: center;

            gap: 6px;

            padding: 7px 11px;

            border-radius: 30px;

            background: #F1F8E4;

            color: var(--dark-leaf-green);

            font-size: 10px;
            font-weight: 700;
        }

        .active-badge::before {
            content: "";

            width: 6px;
            height: 6px;

            border-radius: 50%;

            background: var(--leaf-green);
        }

        .summary-divider {
            height: 1px;

            margin: 27px 0;

            background: var(--border);
        }

        .profile-stat {
            display: flex;
            align-items: center;
            justify-content: space-between;

            padding: 9px 2px;

            font-size: 11px;
        }

        .profile-stat span {
            color: var(--text-muted);
        }

        .profile-stat strong {
            font-weight: 650;
        }

        .edit-profile-button {
            min-height: 44px;

            display: flex;
            align-items: center;
            justify-content: center;

            gap: 8px;

            margin-top: 23px;

            border-radius: 11px;

            background:
                linear-gradient(
                    135deg,
                    var(--metallic-gold),
                    var(--bright-gold)
                );

            color: var(--deep-navy);

            font-size: 11px;
            font-weight: 750;

            transition: transform 0.2s ease;
        }

        .edit-profile-button:hover {
            transform: translateY(-2px);
        }

        /* ========================================
           DETAILS
        ======================================== */

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 15px;

            padding: 21px 24px;

            border-bottom: 1px solid var(--border);
        }

        .card-header h3 {
            margin-bottom: 4px;

            font-size: 14px;
        }

        .card-header p {
            color: var(--text-muted);

            font-size: 10px;
        }

        .small-edit-link {
            display: inline-flex;
            align-items: center;

            gap: 6px;

            color: var(--metallic-gold);

            font-size: 10px;
            font-weight: 700;
        }

        .small-edit-link svg {
            width: 14px;
        }

        .details {
            padding: 7px 24px 20px;
        }

        .detail-row {
            display: grid;

            grid-template-columns: 210px 1fr;

            gap: 20px;

            padding: 20px 0;

            border-bottom: 1px solid #EFF0F2;
        }

        .detail-row:last-child {
            border-bottom: 0;
        }

        .detail-label {
            display: flex;
            align-items: center;

            gap: 10px;

            color: var(--text-muted);

            font-size: 11px;
            font-weight: 500;
        }

        .detail-icon {
            width: 35px;
            height: 35px;

            display: grid;
            place-items: center;

            flex-shrink: 0;

            border-radius: 10px;

            background: #EDF2F7;

            color: var(--deep-navy);
        }

        .detail-icon.gold {
            background: var(--warm-cream);

            color: #9C6800;
        }

        .detail-icon.green {
            background: #F1F8E4;

            color: var(--dark-leaf-green);
        }

        .detail-icon svg {
            width: 16px;
            height: 16px;
        }

        .detail-value {
            display: flex;
            align-items: center;

            color: var(--deep-navy);

            font-size: 12px;
            font-weight: 600;

            word-break: break-word;
        }

        /* ========================================
           QUICK LINKS
        ======================================== */

        .quick-card {
            margin-top: 22px;
        }

        .quick-grid {
            display: grid;

            grid-template-columns: repeat(3, 1fr);

            gap: 13px;

            padding: 20px 24px 24px;
        }

        .quick-link {
            min-height: 95px;

            display: flex;
            align-items: center;

            gap: 13px;

            padding: 17px;

            border: 1px solid var(--border);
            border-radius: 14px;

            background: var(--surface-soft);

            transition:
                transform 0.2s ease,
                border-color 0.2s ease,
                background 0.2s ease;
        }

        .quick-link:hover {
            transform: translateY(-2px);

            border-color: var(--bright-gold);

            background: #FFFDF7;
        }

        .quick-link-icon {
            width: 43px;
            height: 43px;

            display: grid;
            place-items: center;

            flex-shrink: 0;

            border-radius: 12px;

            background: var(--warm-cream);

            color: var(--deep-navy);
        }

        .quick-link-icon.green {
            background: #F1F8E4;

            color: var(--dark-leaf-green);
        }

        .quick-link-icon.navy {
            background: #EAF0F7;

            color: var(--navy-blue);
        }

        .quick-link-icon svg {
            width: 19px;
            height: 19px;
        }

        .quick-link strong {
            display: block;

            margin-bottom: 4px;

            font-size: 11px;
        }

        .quick-link span {
            color: var(--text-muted);

            font-size: 9px;
        }

        /* ========================================
           MOBILE
        ======================================== */

        .sidebar-overlay {
            display: none;
        }

        @media (max-width: 1050px) {
            :root {
                --sidebar-width: 300px;
            }

            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main {
                margin-left: 0;
            }

            .mobile-menu {
                display: grid;
            }

            .sidebar-overlay {
                position: fixed;
                inset: 0;

                z-index: 900;

                background: rgba(0, 26, 61, 0.55);

                backdrop-filter: blur(2px);
            }

            .sidebar-overlay.show {
                display: block;
            }
        }

        @media (max-width: 800px) {
            .topbar {
                height: 80px;

                padding: 0 20px;
            }

            .content {
                padding: 27px 20px;
            }

            .profile-grid {
                grid-template-columns: 1fr;
            }

            .quick-grid {
                grid-template-columns: 1fr;
            }

            .page-heading p {
                display: none;
            }
        }

        @media (max-width: 560px) {
            .page-heading h1 {
                font-size: 18px;
            }

            .notification-button {
                display: none;
            }

            .profile-trigger-name {
                display: none;
            }

            .profile-trigger {
                padding-right: 6px;
            }

            .dropdown-arrow {
                display: none;
            }

            .dropdown-menu {
                width: min(270px, calc(100vw - 30px));
            }

            .detail-row {
                grid-template-columns: 1fr;

                gap: 9px;
            }

            .card-header {
                align-items: flex-start;
            }
        }

        /* ============================ */
        /* =========================================
   ADMIN AVATAR IMAGES
========================================= */

.sidebar-avatar,
.profile-trigger-avatar,
.dropdown-avatar {
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-avatar img,
.profile-trigger-avatar img,
.dropdown-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* Sidebar */
.sidebar-avatar img {
    border-radius: inherit;
}

/* Top-right avatar */
.profile-trigger-avatar img {
    border-radius: inherit;
}

/* Dropdown avatar */
.dropdown-avatar img {
    border-radius: inherit;
}.money-preview {
    display: none;
    margin-top: 7px;
    padding: 9px 11px;

    border: 1px solid #E4E9F1;
    border-radius: 7px;

    background: #F8FAFC;
}

.money-preview.show {
    display: block;
}

.money-preview strong {
    display: block;

    color: var(--deep-navy);

    font-size: 12px;
    font-weight: 800;
}

.money-preview span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}
/* =========================================
   SHOW ENTRIES
========================================= */

.table-controls {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #eef1f5;
    background: #ffffff;
}

.entries-form {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #101828;
    font-size: 14px;
    white-space: nowrap;
}

.entries-form label,
.entries-form span {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    flex: none !important;
}

.entries-form select {
    width: 78px !important;
    min-width: 78px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 30px 0 12px !important;

    border: 1px solid #d9dee7 !important;
    border-radius: 7px !important;

    background-color: #ffffff;
    color: #334155;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    outline: none;
    flex: none !important;
}

.entries-form select:focus {
    border-color: #2455df !important;
    box-shadow: 0 0 0 3px rgba(36, 85, 223, 0.10);
}