/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}


/* =========================================================
   HEADER
   ========================================================= */

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #020202 0%, #000000 100%);
    background-clip: text;          
    -webkit-background-clip: text;  
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.75rem;
    color: #0a0a0a;
    margin: 0;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-menu {
    flex: 1;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    overflow-y: auto;
}

.nav-menu li {
    margin: 0;
}

.nav-menu button {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #cbd5e1;
    border: none;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: #60a5fa;
}

.nav-menu button.active {
    background: rgba(96, 165, 250, 0.15);
    color: white;
    border-left-color: #60a5fa;
    font-weight: 600;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.sidebar-logout {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.5);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }
}