:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --sidebar-width: 250px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #4e73df;
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    color: white;
    z-index: 1000;
    padding-top: 1rem;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.35rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 700;
    color: #4e73df;
}

.login-page {
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
}

.status-active { color: #1cc88a; font-weight: bold; }
.status-blocked { color: #e74a3b; font-weight: bold; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 250px; /* Ensure width is fixed */
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    /* Mobile Header with Hamburger */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    }
    
    /* Overlay for sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 900; /* Below sidebar (1000) */
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}
