:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #2af598 0%, #009efd 100%);
    --danger-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    --sidebar-width: 260px;
    --dark-bg: #0f172a;
    --accent-color: #38bdf8;
}
body { background-color: #f8f9fa; font-family: 'Inter', sans-serif; color: #334155; }

.stat-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); }
.bg-gradient-primary { background: var(--primary-gradient); }
.bg-gradient-success { background: var(--success-gradient); }
.bg-gradient-danger { background: var(--danger-gradient); }

.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}
.btn-register {
    border-radius: 8px;
    background: #334155;
    color: white;
    border: none;
    padding: 12px;
    font-weight: 600;
}
.btn-register:hover { background: #1e293b; color: #fff; }

.table thead th {
    background-color: #f1f5f9;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    border: none;
    padding: 15px;
}
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}
/* Sidebar Styles */
#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: #1e293b;
    transition: all 0.3s;
    position: fixed;
    z-index: 1000;
}
#sidebar-wrapper .sidebar-heading { padding: 1.5rem; color: #fff; font-weight: 700; font-size: 1.25rem; }
#sidebar-wrapper .list-group-item {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 12px 24px;
    transition: 0.2s;
}
#sidebar-wrapper .list-group-item:hover, #sidebar-wrapper .list-group-item.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Main Content Adjustment */
#page-content-wrapper {
    width: 100%;
    padding-left: var(--sidebar-width);
    transition: all 0.3s;
}

/* Top Navbar */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 30px;
}

#menu-toggle {
    background: #f1f5f9;
    border: none;
    color: #475569;
    padding: 8px 12px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    /* Hide sidebar off-screen */
    #sidebar-wrapper { 
        margin-left: calc(-1 * var(--sidebar-width)); 
    }

    /* Bring sidebar back when toggled */
    #wrapper.toggled #sidebar-wrapper { 
        margin-left: 0; 
    }

    /* Content should take full width and not be pushed */
    #page-content-wrapper { 
        width: 100%;
        margin-left: 0 !important;
    }

    /* Fix the squashed navbar in your screenshot */
    .navbar-custom {
        padding: 10px 15px;
    }

    .navbar-text {
        font-size: 0.85rem;
        max-width: 200px; /* Prevents long names from breaking the layout */
        display: inline-block;
    }
}

/* Sidebar Overlay Styles */
#sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Just below the sidebar (1000) */
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    /* Show overlay only when wrapper has .toggled class */
    #wrapper.toggled #sidebar-overlay {
        display: block;
    }
}


/* Existing Card Styles */
.stat-card { border: none; border-radius: 15px; }
.bg-gradient-primary { background: var(--primary-gradient); }
.card-custom { border: none; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }