/* =========================================================
   Virtual Education Point - Admin Panel Stylesheet
   ========================================================= */

* { font-family: 'Inter', sans-serif; }
body.admin-body { background: #f4f6fb; overflow-x: hidden; }

/* =========================================================
   LAYOUT
   ========================================================= */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; min-width: 0; }
.admin-content { flex: 1; }
.admin-topbar { height: 56px; position: sticky; top: 0; z-index: 100; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 200;
}
.admin-sidebar.collapsed { width: 70px; }
.admin-sidebar.collapsed .sidebar-link span,
.admin-sidebar.collapsed .nav-section-label,
.admin-sidebar.collapsed .sidebar-brand div { display: none; }
.admin-sidebar.collapsed .sidebar-link { justify-content: center; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-link.active { background: linear-gradient(135deg, #0d6efd, #0a58ca); color: #fff; box-shadow: 0 4px 12px rgba(13,110,253,0.4); }
.sidebar-link i { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    padding: 6px 14px 2px;
    text-transform: uppercase;
}

.avatar-sm {
    width: 36px; height: 36px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* =========================================================
   STAT CARDS
   ========================================================= */
.stat-card {
    border-radius: 16px;
    transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-3px); }

/* =========================================================
   TABLES
   ========================================================= */
.table th { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #6c757d; }
.table td { font-size: 0.875rem; vertical-align: middle; }
.btn-xs { padding: 3px 8px; font-size: 0.75rem; }

/* =========================================================
   CARDS
   ========================================================= */
.card { border-radius: 12px !important; }
.card-header { border-radius: 12px 12px 0 0 !important; font-size: 0.9rem; }

/* =========================================================
   FORMS
   ========================================================= */
.form-control, .form-select { border-radius: 8px; border-color: #dee2e6; font-size: 0.9rem; }
.form-control:focus, .form-select:focus { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,0.15); }
.form-label { font-size: 0.875rem; margin-bottom: 0.4rem; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { border-radius: 8px; font-weight: 500; }
.btn-primary { background: #0d6efd; }
.btn-group .btn { border-radius: 6px !important; margin: 0 1px; }

/* =========================================================
   MODAL
   ========================================================= */
.modal-content { border-radius: 16px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header { border-radius: 16px 16px 0 0; }

/* =========================================================
   ALERTS
   ========================================================= */
.alert { border-radius: 10px; border: none; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* =========================================================
   BADGES
   ========================================================= */
.badge { font-weight: 500; border-radius: 6px; }

/* =========================================================
   SCROLLBAR
   ========================================================= */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .admin-sidebar { position: fixed; left: -250px; transition: left 0.3s ease; }
    .admin-sidebar.mobile-open { left: 0; }
    .admin-main { margin-left: 0 !important; }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-card { background: white; }
