/* GridAcademy Admin Panel — Custom Styles */

/* ── Sidebar ── */
#sidebar {
    min-height: 100vh;
    width: 250px;
    flex-shrink: 0;
    transition: width 0.25s ease;
    overflow-x: hidden;
}

#sidebar .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
    white-space: nowrap;
}

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

#sidebar .nav-link.active {
    background-color: #0d6efd !important;
}

.sidebar-section-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0 0.75rem;
}

/* Collapsed sidebar */
.sidebar-collapsed #sidebar {
    width: 0;
}

/* ── Page content ── */
#page-content-wrapper {
    min-height: 100vh;
    background-color: #f5f6fa;
    overflow-x: hidden;
}

/* ── Stat cards ── */
.stat-card {
    border-left: 4px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

.stat-card-total      { border-left-color: #0d6efd; }
.stat-card-admin      { border-left-color: #dc3545; }
.stat-card-instructor { border-left-color: #f59e0b; }
.stat-card-student    { border-left-color: #198754; }
.stat-card-active     { border-left-color: #0dcaf0; }
.stat-card-inactive   { border-left-color: #6c757d; }

/* ── Role badges ── */
.badge-admin      { background-color: #dc3545 !important; }
.badge-instructor { background-color: #f59e0b !important; color: #000 !important; }
.badge-user       { background-color: #6c757d !important; }

/* ── Table improvements ── */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ── Login page ── */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
