/* ============================================
   HOTELBD UNIFIED LAYOUT & DASHBOARD BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --hbd-navy: #0B1B33;
    --hbd-dark-navy: #071426;
    --hbd-gold: #D4A24C;
    --hbd-gold-dark: #C38A30;
    --hbd-gold-soft: rgba(212, 162, 76, 0.12);
    --hbd-white: #FFFFFF;
    --hbd-bg: #F6F7F9;
    --hbd-surface: #FFFFFF;
    --hbd-border: #E5EAF0;
    --hbd-text: #172033;
    --hbd-text-muted: #6B7A8D;
    --hbd-sidebar-width: 264px;
    --hbd-radius-card: 16px;
    --hbd-radius-btn: 10px;
    --hbd-shadow-card: 0 4px 20px rgba(11, 27, 51, 0.06);
    --hbd-shadow-hover: 0 8px 30px rgba(11, 27, 51, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--hbd-bg);
    color: var(--hbd-text);
    min-height: 100vh;
}

/* ============================================
   PUBLIC NAVBAR
   ============================================ */
.hbd-navbar {
    width: 100%;
    background: var(--hbd-white);
    box-shadow: 0 2px 10px rgba(11, 27, 51, 0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    display: block;
}
.hbd-navbar .nav-link {
    font-weight: 500;
    color: var(--hbd-text);
    padding: 8px 16px !important;
    transition: color 0.2s;
}
.hbd-navbar .nav-link:hover, .hbd-navbar .nav-link.active {
    color: var(--hbd-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hbd-hero {
    background-color: var(--hbd-navy);
    padding: 80px 0 140px;
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}
.hbd-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 78% 22%, rgba(212, 162, 76, 0.22), transparent 38%), linear-gradient(135deg, #0B1B33, #142c4b 58%, #071426);
    opacity: 1;
    z-index: 0;
}
.hbd-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--hbd-white);
}
.hbd-hero-content h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
}
.hbd-hero-content h1 .text-gold { color: var(--hbd-gold); }
.hbd-hero-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Consistent image-free state for hotels, rooms and destinations without saved photos. */
.image-placeholder {
    width: 100%;
    min-height: 200px;
    display: grid;
    place-items: center;
    background: #edf1f5;
    color: #738197;
    font-size: 2rem;
}

/* ============================================
   GOLD CALL TO ACTION BUTTON
   ============================================ */
.btn-gold {
    background: var(--hbd-gold);
    color: var(--hbd-white);
    padding: 12px 28px;
    border-radius: var(--hbd-radius-btn);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-gold:hover {
    background: var(--hbd-gold-dark);
    color: var(--hbd-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 162, 76, 0.4);
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */
.hbd-section-title {
    font-weight: 700;
    color: var(--hbd-navy);
    margin-bottom: 8px;
}
.hbd-section-subtitle {
    color: var(--hbd-text-muted);
    opacity: 0.7;
    font-size: 1rem;
}

.hbd-destination-card {
    background: var(--hbd-white);
    border-radius: var(--hbd-radius-card);
    overflow: hidden;
    box-shadow: var(--hbd-shadow-card);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.hbd-destination-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hbd-shadow-hover);
}
.hbd-destination-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.hbd-destination-card .card-body { padding: 16px 20px; }
.hbd-destination-card h5 {
    font-weight: 700;
    color: var(--hbd-navy);
    margin-bottom: 2px;
}
.hbd-destination-card p {
    font-size: 0.9rem;
    color: var(--hbd-text-muted);
    opacity: 0.7;
}

.hbd-hotel-card {
    background: var(--hbd-white);
    border-radius: var(--hbd-radius-card);
    overflow: hidden;
    box-shadow: var(--hbd-shadow-card);
    transition: all 0.3s ease;
    padding: 16px;
}
.hbd-hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hbd-shadow-hover);
}
.hbd-hotel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--hbd-radius-btn);
    margin-bottom: 12px;
}
.hbd-hotel-card h5 {
    font-weight: 700;
    color: var(--hbd-navy);
    margin-bottom: 4px;
}
.hbd-hotel-card .location {
    color: var(--hbd-text-muted);
    opacity: 0.7;
    font-size: 0.85rem;
}
.hbd-hotel-card .price {
    font-weight: 700;
    color: var(--hbd-gold);
}
.hbd-hotel-card .price span {
    font-weight: 400;
    color: var(--hbd-text-muted);
    opacity: 0.6;
}

.hbd-feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--hbd-white);
    border-radius: var(--hbd-radius-card);
    box-shadow: var(--hbd-shadow-card);
    transition: transform 0.3s;
}
.hbd-feature-box:hover {
    transform: translateY(-4px);
}
.hbd-feature-box i {
    font-size: 2.5rem;
    color: var(--hbd-gold);
    margin-bottom: 16px;
    display: block;
}
.hbd-feature-box h6 {
    font-weight: 700;
    color: var(--hbd-navy);
    margin-bottom: 4px;
}
.hbd-feature-box p {
    font-size: 0.85rem;
    color: var(--hbd-text-muted);
    opacity: 0.7;
}

/* ============================================
   DASHBOARD LAYOUT (SIDEBAR & MAIN CONTENT)
   ============================================ */

/* ✅ SIDEBAR - MOBILE FIRST */
.hbd-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--hbd-navy, #0B1B33);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* ✅ SIDEBAR OPEN STATE */
.hbd-sidebar.open {
    transform: translateX(0);
}

/* ✅ DESKTOP SIDEBAR */
@media (min-width: 992px) {
    .hbd-sidebar {
        transform: translateX(0) !important;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1040;
        width: 260px;
    }
}

/* ✅ SIDEBAR OVERLAY */
.hbd-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    backdrop-filter: blur(4px);
}
.hbd-sidebar-overlay.active {
    display: block;
}

/* ✅ MAIN CONTENT */
.hbd-main-content {
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

@media (min-width: 992px) {
    .hbd-main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

/* ✅ SIDEBAR BRAND */
.hbd-sidebar .brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hbd-sidebar .brand h4 { color: #fff; font-weight: 700; }
.hbd-sidebar .brand .text-gold { color: var(--hbd-gold); }

/* ✅ SIDEBAR NAV LINKS */
.hbd-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    margin: 4px 12px;
    border-radius: var(--hbd-radius-btn);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.hbd-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.hbd-sidebar .nav-link.active {
    color: var(--hbd-gold);
    background: rgba(212, 162, 76, 0.15);
    border-left: 3px solid var(--hbd-gold);
}
.hbd-sidebar .nav-link i { font-size: 20px; width: 24px; text-align: center; }

/* ✅ LOGOUT BUTTON */
.hbd-sidebar .logout-btn {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ✅ SIDEBAR SCROLLBAR */
.hbd-sidebar::-webkit-scrollbar { width: 6px; }
.hbd-sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.hbd-sidebar::-webkit-scrollbar-thumb { background: var(--hbd-gold); border-radius: 8px; }
.hbd-sidebar::-webkit-scrollbar-thumb:hover { background: var(--hbd-gold-dark); }

/* ✅ TOP NAVBAR */
.hbd-topbar {
    background: var(--hbd-white);
    padding: 16px 30px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 72px;
}

/* ✅ MENU TOGGLE BUTTON */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--hbd-text, #172033);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.menu-toggle:hover {
    background: rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* ✅ CONTENT AREA */
.hbd-content-area {
    padding: 30px;
    flex: 1;
}

/* ============================================
   DASHBOARD WIDGETS & CARDS
   ============================================ */
.hbd-welcome-banner {
    background: var(--hbd-navy);
    color: #fff;
    border-radius: var(--hbd-radius-card);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.hbd-welcome-banner h2 { font-weight: 700; }
.hbd-welcome-banner h2 span { color: var(--hbd-gold); }
.hbd-welcome-banner p { color: rgba(255,255,255,0.7); }

.hbd-stat-card {
    background: var(--hbd-white);
    border-radius: var(--hbd-radius-card);
    padding: 20px 24px;
    box-shadow: var(--hbd-shadow-card);
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}
.hbd-stat-card:hover { transform: translateY(-4px); box-shadow: var(--hbd-shadow-hover); }

.hbd-stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.hbd-stat-card .stat-icon.gold { background: rgba(212,162,76,0.12); color: var(--hbd-gold); }
.hbd-stat-card .stat-icon.blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
.hbd-stat-card .stat-icon.green { background: rgba(22,163,74,0.12); color: #16A34A; }
.hbd-stat-card .stat-icon.red { background: rgba(220,38,38,0.12); color: #DC2626; }

.hbd-stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--hbd-navy); margin-top: 4px; }
.hbd-stat-card .stat-label { font-size: 14px; color: var(--hbd-text-muted); font-weight: 500; }

.hbd-quick-action {
    background: var(--hbd-white);
    border-radius: var(--hbd-radius-card);
    padding: 16px 20px;
    border: 1px solid #E2E8F0;
    text-decoration: none; color: var(--hbd-text);
    display: flex; align-items: center; gap: 16px; font-weight: 500;
    transition: all 0.2s;
}
.hbd-quick-action:hover {
    border-color: var(--hbd-gold);
    box-shadow: var(--hbd-shadow-hover);
    transform: translateX(4px);
}
.hbd-quick-action i { font-size: 28px; color: var(--hbd-gold); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hbd-hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hbd-topbar {
        padding: 12px 16px;
        height: auto;
        min-height: 60px;
    }
    .hbd-content-area {
        padding: 16px;
    }
    .hbd-welcome-banner h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .hbd-hero-content h1 { font-size: 2.2rem; }
    .hbd-hero { padding: 60px 0 100px; }
    .hbd-topbar {
        padding: 10px 12px;
        min-height: 56px;
    }
    .hbd-content-area {
        padding: 12px;
    }
    .hbd-welcome-banner {
        padding: 20px;
    }
    .hbd-stat-card .stat-value {
        font-size: 24px;
    }
}

/* ============================================
   SIDEBAR - COMPLETE REDESIGN (Admin/Manager/User)
   ============================================ */

/* ---- Main Sidebar Container ---- */
.hbd-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--hbd-navy, #0B1B33);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

/* ---- Desktop ---- */
@media (min-width: 992px) {
    .hbd-sidebar {
        transform: translateX(0) !important;
        width: 260px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040;
    }
    .hbd-sidebar-overlay {
        display: none !important;
    }
    .hbd-main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
    .hbd-sidebar {
        width: 85vw;
        max-width: 320px;
    }
    .hbd-sidebar.open {
        transform: translateX(0);
    }
    .hbd-main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================
   SIDEBAR - HEADER
   ============================================ */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-header .brand a {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-header .brand .text-gold {
    color: var(--hbd-gold);
}

.sidebar-header .brand i {
    font-size: 22px;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    .sidebar-close-btn {
        display: none !important;
    }
}

/* ============================================
   SIDEBAR - PROFILE (User Info)
   ============================================ */
.sidebar-profile {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-profile .profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-profile .profile-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-profile .profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hbd-gold);
    flex-shrink: 0;
}

.sidebar-profile .profile-info {
    flex: 1;
    min-width: 0;
}

.sidebar-profile .profile-info .name {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile .profile-info .role {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SIDEBAR - NAVIGATION (Scrollable)
   ============================================ */
.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--hbd-gold);
    border-radius: 4px;
}

.sidebar-nav .nav-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    margin: 0 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 38px;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-link.active {
    color: var(--hbd-gold);
    background: rgba(212, 162, 76, 0.12);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--hbd-gold);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-label {
    color: rgba(255, 255, 255, 0.25);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 14px 4px;
}

.sidebar-nav .nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 14px;
}

/* ---- Mobile: Reduce spacing ---- */
@media (max-width: 991px) {
    .sidebar-nav .nav-link {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 34px;
        gap: 10px;
        margin: 0 6px;
    }
    .sidebar-nav .nav-link i {
        font-size: 14px;
        width: 18px;
    }
    .sidebar-nav .nav-label {
        font-size: 8px;
        padding: 6px 12px 2px;
    }
    .sidebar-nav .nav-divider {
        margin: 3px 10px;
    }
}

/* ============================================
   SIDEBAR - FOOTER (Always Visible - Compact)
   ============================================ */
.sidebar-footer {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 5px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #ef4444;
}

.logout-btn i {
    font-size: 14px;
}

.logout-btn span {
    font-weight: 500;
}

/* ---- Desktop ---- */
@media (min-width: 992px) {
    .sidebar-footer {
        padding: 8px 14px;
    }
    .logout-btn {
        padding: 8px 12px;
        min-height: 36px;
        font-size: 13px;
    }
    .logout-btn i {
        font-size: 15px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
    .sidebar-footer {
        padding: 5px 10px;
    }
    .logout-btn {
        padding: 5px 8px;
        min-height: 30px;
        font-size: 11px;
    }
    .logout-btn i {
        font-size: 13px;
    }
}

/* ============================================
   OVERLAY
   ============================================ */
.hbd-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

.hbd-sidebar-overlay.active {
    display: block;
}

@media (min-width: 992px) {
    .hbd-sidebar-overlay {
        display: none !important;
    }
}
/* ============================================
   PROFILE AVATAR - GLOBAL
   ============================================ */

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--hbd-gold);
    background: #f0f2f5;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--hbd-gold);
    margin: 0 auto;
    background: #f0f2f5;
}

/* Desktop */
@media (min-width: 992px) {
    .profile-avatar {
        width: 40px;
        height: 40px;
    }
    .profile-avatar-large {
        width: 70px;
        height: 70px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .profile-avatar {
        width: 36px;
        height: 36px;
    }
    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .profile-avatar {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }
    .profile-avatar-large {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .profile-avatar {
        width: 28px;
        height: 28px;
    }
    .profile-avatar-large {
        width: 45px;
        height: 45px;
    }
}

/* Hover Effect for Profile Avatar */
.profile-avatar-wrapper:hover .profile-avatar {
    border-color: var(--hbd-gold-dark);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Shared HotelBD workspace theme: navy, warm gold and quiet neutral surfaces. */
.hbd-sidebar {
    width: var(--hbd-sidebar-width);
    background: linear-gradient(180deg, var(--hbd-navy) 0%, var(--hbd-dark-navy) 100%);
    box-shadow: 8px 0 28px rgba(7, 20, 38, 0.12);
}

@media (min-width: 992px) {
    .hbd-sidebar { width: var(--hbd-sidebar-width); }
    .hbd-main-content {
        margin-left: var(--hbd-sidebar-width);
        width: calc(100% - var(--hbd-sidebar-width));
    }
}

.sidebar-header {
    min-height: 82px;
    padding: 18px 20px;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-header .brand a { gap: 12px !important; }
.sidebar-header .brand i { color: var(--hbd-gold); }
.sidebar-header .brand > a > span { letter-spacing: -0.02em; font-size: 19px; }
.sidebar-header .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.sidebar-brand-label {
    padding-left: 36px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.sidebar-nav {
    padding: 14px 10px 18px;
    scrollbar-color: rgba(212, 162, 76, 0.55) transparent;
}

.sidebar-nav .nav-section { gap: 3px; }
.sidebar-nav .nav-link {
    min-height: 42px;
    margin: 0 4px;
    padding: 9px 12px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-nav .nav-link.active {
    color: #F2D49F;
    background: rgba(212, 162, 76, 0.14);
    border-color: rgba(212, 162, 76, 0.18);
}

.sidebar-nav .nav-link.active::before {
    left: -1px;
    height: 22px;
    background: var(--hbd-gold);
}

.sidebar-nav .nav-link i { color: currentColor; font-size: 16px; }
.sidebar-nav .nav-label {
    padding: 15px 13px 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.sidebar-nav .nav-divider,
.footer-divider { background: rgba(255, 255, 255, 0.1); }

.sidebar-footer {
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .footer-divider { display: none; }
.sidebar-footer .logout-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.74);
    background: transparent;
    transition: background 160ms ease, color 160ms ease;
}

.sidebar-footer .logout-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hbd-topbar {
    min-height: 72px;
    padding: 12px clamp(18px, 3vw, 36px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--hbd-border);
    box-shadow: 0 3px 16px rgba(11, 27, 51, 0.035);
    backdrop-filter: blur(12px);
}

.hbd-topbar h5,
.hbd-topbar h4 { color: var(--hbd-navy) !important; letter-spacing: -0.02em; }

.menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hbd-border);
    background: var(--hbd-surface);
    color: var(--hbd-navy);
    font-size: 21px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    color: var(--hbd-navy);
    background: var(--hbd-gold-soft);
    border-color: rgba(212, 162, 76, 0.42);
}

@media (min-width: 992px) {
    .menu-toggle { display: none; }
}

.navbar-user-trigger {
    min-height: 44px;
    background: var(--hbd-surface);
    border: 1px solid var(--hbd-border);
    color: var(--hbd-text);
    box-shadow: 0 2px 8px rgba(11, 27, 51, 0.04);
}

.navbar-user-trigger:hover,
.navbar-user-trigger:focus-visible {
    color: var(--hbd-navy);
    border-color: rgba(212, 162, 76, 0.55);
    background: #fff;
}

.hbd-topbar .dropdown-menu {
    border: 1px solid var(--hbd-border) !important;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(11, 27, 51, 0.14) !important;
}

.hbd-topbar .dropdown-item { color: var(--hbd-text); }
.hbd-topbar .dropdown-item:hover,
.hbd-topbar .dropdown-item:focus { color: var(--hbd-navy); background: var(--hbd-gold-soft); }

.hbd-content-area {
    padding: clamp(18px, 2.4vw, 32px);
}

.hbd-main-content .card {
    border: 1px solid var(--hbd-border) !important;
    border-radius: var(--hbd-radius-card);
    box-shadow: var(--hbd-shadow-card) !important;
}

.hbd-main-content .form-control:focus,
.hbd-main-content .form-select:focus {
    border-color: var(--hbd-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 162, 76, 0.16);
}

.hbd-main-content .btn-primary {
    --bs-btn-bg: var(--hbd-navy);
    --bs-btn-border-color: var(--hbd-navy);
    --bs-btn-hover-bg: #193354;
    --bs-btn-hover-border-color: #193354;
    --bs-btn-active-bg: var(--hbd-dark-navy);
}

.hbd-main-content .btn-outline-primary {
    --bs-btn-color: var(--hbd-navy);
    --bs-btn-border-color: rgba(11, 27, 51, 0.24);
    --bs-btn-hover-bg: var(--hbd-navy);
    --bs-btn-hover-border-color: var(--hbd-navy);
}

.hbd-sidebar-overlay { background: rgba(7, 20, 38, 0.58); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
