/* Sidebar Container */
.sidebar {
    width: 260px;
    background-color: #111;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid #007bff;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Sidebar Branding */
.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.sidebar-header h2 {
    color: #00d4ff;
    letter-spacing: 3px;
    margin: 0;
    font-size: 24px;
}

/* Links List */
.nav-links {
    list-style: none;
    padding: 20px 0;
}

.nav-links li a {
    display: block;
    padding: 15px 25px;
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
    border-left: 4px solid transparent;
}

.nav-links li a i {
    margin-right: 12px;
    width: 20px;
    color: #007bff;
    text-align: center;
}

/* Hover State ONLY (Active state removed) */
.nav-links li a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #00d4ff;
    border-left: 4px solid #00d4ff;
}

.logout-item {
    margin-top: 50px;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    width: 100%;
    background: #111;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #007bff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
}

.mobile-header .logo {
    color: #00d4ff;
    font-weight: bold;
    letter-spacing: 2px;
}

.hamburger {
    font-size: 24px;
    color: #00d4ff;
    cursor: pointer;
}

/* Responsive Logic (This makes the sidebar open/close on mobile) */
@media (max-width: 768px) {
    .sidebar {
        left: -260px; /* Moves sidebar off-screen */
    }

    .sidebar.active {
        left: 0; /* Slides sidebar in when JS toggles this class */
    }

    .mobile-header {
        display: flex;
    }
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #050505;
    color: #ffffff;
}

.main-content {
    margin-left: 260px;
    padding: 50px;
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-section h1 span {
    color: #00d4ff;
}

.welcome-section p {
    color: #888;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: #0f0f0f;
    padding: 30px;
    border: 1px solid #1a1a1a;
    transition: border 0.3s ease;
}

.card:hover {
    border: 1px solid #007bff;
}

.card h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.highlight {
    color: #00d4ff;
    font-weight: bold;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #00d4ff;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 30px 20px;
    }
}