/* ══════════════════════════════
   BASE
══════════════════════════════ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
}

/* ══════════════════════════════
   LAYOUT WRAPPER
══════════════════════════════ */
#wrapper {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════
   SIDEBAR — DESKTOP
   Default: visible (260px)
   .open has no effect on desktop
══════════════════════════════ */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background-color: #1B2A4A;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 999;
}

/* Desktop collapse — toggled by hamburger */
.sidebar.collapsed-desktop {
    width: 0;
}

/* ── Brand area ── */
.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    flex-shrink: 0;
    white-space: nowrap;
}

.sidebar-brand h5 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 2px 0;
}

.sidebar-brand small {
    color: #aaaaaa;
    font-size: 11px;
}

/* ── Nav items ── */
.sidebar-nav {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav li a i {
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-nav li.active a {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-left: 4px solid #E8822A;
    padding-left: 20px;
}

/* ══════════════════════════════
   SIDEBAR — MOBILE
   Default: hidden off-screen left
   .open: slides in
══════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;          /* hidden off-screen by default */
        width: 260px !important; /* always 260px wide on mobile */
        height: 100%;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;               /* slides into view */
    }

    #page-content {
        width: 100%;
    }
}

/* ══════════════════════════════
   OVERLAY — mobile only
══════════════════════════════ */
#sidebarOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

#sidebarOverlay.active {
    display: block;
}

/* ══════════════════════════════
   TOP NAVBAR
══════════════════════════════ */
.top-navbar {
    background-color: #1B2A4A;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.btn-link.text-white {
    color: #ffffff !important;
    text-decoration: none;
}

/* ══════════════════════════════
   PAGE CONTENT
══════════════════════════════ */
#page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-content {
    padding: 28px;
    flex: 1;
}

/* ══════════════════════════════
   SECTION CARDS
══════════════════════════════ */
.section-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ══════════════════════════════
   LOGIN PAGE
══════════════════════════════ */
.login-body {
    background: linear-gradient(135deg, #1B2A4A, #3B1F5C);
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.login-header {
    background-color: #1B2A4A;
    color: #ffffff;
    padding: 24px;
}

.login-header h4 {
    font-weight: 700;
    letter-spacing: 2px;
}

.btn-primary {
    background-color: #1B2A4A;
    border-color: #1B2A4A;
    padding: 10px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #E8822A;
    border-color: #E8822A;
}
```
