/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET + VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;

  --navy:          #0f172a;
  --navy-mid:      #1e293b;

  --success-bg:   #f0fdf4;
  --success-text: #166534;
  --success-border:#bbf7d0;

  --danger-bg:    #fef2f2;
  --danger-text:  #991b1b;
  --danger-border:#fecaca;

  --warning-bg:   #fff7ed;
  --warning-text: #92400e;
  --warning-border:#fed7aa;

  --neutral-bg:   #f8fafc;
  --neutral-text: #475569;
  --neutral-border:#e2e8f0;

  --bg:       #f1f5f9;
  --surface:  #ffffff;
  --border:   #e2e8f0;
  --border-mid:#cbd5e1;

  --text:     #0f172a;
  --text-mid: #334155;
  --muted:    #64748b;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);

  --radius:    10px;
  --radius-sm: 7px;
  --radius-xs: 5px;
}

body {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ===== AUTH PAGE ===== */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  background: linear-gradient(150deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
}
.auth-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  width: 100%; max-width: 400px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.auth-logo h1 { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.3; }
.auth-logo p  { color: var(--muted); font-size: 13px; margin-top: 5px; }

/* Auth tabs */
.auth-tabs { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: 28px; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  font-weight: 600; font-size: 13px; cursor: pointer;
  color: var(--muted); border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  transition: all 0.2s; font-family: inherit;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Role selector */
.role-select { display: flex; gap: 10px; }
.role-option {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.role-option:hover { border-color: var(--primary); background: var(--primary-light); }
.role-option input[type="radio"] { display: none; }
.role-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.role-option .role-icon { font-size: 22px; display: block; margin-bottom: 4px; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 13px;
  margin-bottom: 7px; color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  background: var(--surface);
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit; direction: rtl;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-group small { color: var(--muted); font-weight: 400; }

.error-msg {
  background: var(--danger-bg); color: var(--danger-text);
  border: 1px solid var(--danger-border); border-radius: var(--radius-xs);
  padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}
.error-msg.hidden { display: none; }

.success-msg {
  background: var(--success-bg); color: var(--success-text);
  border: 1px solid var(--success-border); border-radius: var(--radius-xs);
  padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}
.success-msg.hidden { display: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.15s;
  font-family: inherit; text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(37,99,235,0.25); }

.btn-secondary {
  background: var(--surface); color: var(--text-mid); border-color: var(--border-mid);
}
.btn-secondary:hover { background: var(--bg); border-color: #94a3b8; }

.btn-danger {
  background: #dc2626; color: #fff; border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-ghost {
  background: transparent; color: var(--muted); border-color: transparent;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-ai {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff; border-color: transparent;
}
.btn-ai:hover { opacity: 0.88; }

.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
}
.status-active   { background: var(--success-bg);  color: var(--success-text); }
.status-inactive { background: var(--danger-bg);   color: var(--danger-text); }
.status-frozen   { background: var(--warning-bg);  color: var(--warning-text); }
.status-neutral  { background: var(--neutral-bg);  color: var(--neutral-text); }

.role-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.role-admin   { background: #f5f3ff; color: #5b21b6; }
.role-manager { background: #ecfeff; color: #0e7490; }
.role-teacher { background: var(--primary-light); color: var(--primary-dark); }
.role-client  { background: #f0fdf4; color: #166534; }
.role-student { background: var(--neutral-bg); color: var(--neutral-text); }

/* ===== HEADER ===== */
.top-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 58px;
  position: sticky; top: 0; z-index: 100;
}
.header-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; color: var(--primary);
}
.brand-icon { font-size: 20px; }
.header-user {
  display: flex; align-items: center; gap: 12px; font-size: 13px;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.role-badge {
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.role-badge.admin   { background: #f5f3ff; color: #5b21b6; }
.role-badge.teacher { background: var(--primary-light); color: var(--primary); }
.role-badge.student { background: #fef9c3; color: #854d0e; }
.role-badge.client  { background: #e0f2fe; color: #0369a1; }

/* ===== OLD ADMIN NAV (kept for compat) ===== */
.admin-nav {
  display: flex; justify-content: center; gap: 2px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 24px; position: sticky; top: 0; z-index: 100;
}
.admin-nav-item {
  padding: 14px 22px; border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; transition: all 0.15s; font-family: inherit;
}
.admin-nav-item:hover { color: var(--text); }
.admin-nav-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== STAT CARDS ===== */
.admin-stats { display: flex; gap: 16px; }
.stat-card {
  flex: 1; background: var(--surface);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  border-top: 2px solid var(--accent, var(--primary));
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, var(--primary));
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { font-size: 32px; opacity: 0.85; }
.stat-body { flex: 1; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent, var(--primary)); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; letter-spacing: 0.02em; }

/* ===== ADMIN PANELS ===== */
.admin-wrap { max-width: 1200px; margin: 0 auto; }
.admin-panel { display: none; padding: 28px 32px; }
.admin-panel.active { display: block; }

.panel-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.panel-header-text h2 { font-size: 20px; font-weight: 700; color: var(--text); }
.panel-header-text p  { font-size: 13px; color: var(--muted); margin-top: 2px; }
.panel-header h2 { font-size: 20px; font-weight: 700; }

.search-input {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 13px; font-family: inherit;
  outline: none; width: 220px; background: var(--surface);
  transition: border-color 0.15s; color: var(--text);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.search-input::placeholder { color: var(--muted); }

.subject-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.subject-option {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-weight: 500;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 14px;
  transition: all 0.15s; user-select: none; color: var(--text-mid);
}
.subject-option:has(input:checked) {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary);
}
.subject-option input[type="checkbox"] { display: none; }

.admin-table-wrap {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--border);
}
.admin-empty {
  text-align: center; padding: 48px 24px;
  color: var(--muted); font-size: 14px;
}

/* ===== TABLE ===== */
table { width: 100%; border-collapse: collapse; }
thead th {
  background: #f8fafc; padding: 11px 16px;
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}
tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafafa; }
tbody td { padding: 11px 16px; font-size: 13px; vertical-align: middle; text-align: center; }

.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 8px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.admin-table th:last-child,
.admin-table td:last-child { white-space: nowrap; }

/* ===== FILTER BAR ===== */
.filter-bar {
  padding: 10px 16px; border-bottom: 1px solid #f1f5f9;
  display: flex; gap: 6px; align-items: center;
}
.filter-bar-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ===== LOADING ===== */
.loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 48px; color: var(--muted); font-size: 14px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(3px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px 32px; width: 100%; max-width: 480px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: modalIn 0.2s ease-out both;
  border: 1px solid var(--border);
}
.modal-scroll-body { overflow-y: auto; flex: 1; min-height: 0; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.modal h2 { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.modal-actions {
  display: flex; gap: 8px; margin-top: 22px;
  justify-content: flex-start; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== DASHBOARD LAYOUT (teacher/student/client pages) ===== */
.dashboard-page { display: flex; flex-direction: column; }
.dashboard-body {
  display: flex; flex: 1; height: calc(100vh - 58px); overflow: hidden;
}

/* Teacher sidebar (student list) */
.sidebar {
  width: 280px; flex-shrink: 0; background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header h2 { font-size: 15px; font-weight: 700; }
.student-list { flex: 1; overflow-y: auto; padding: 8px; }
.student-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.12s; margin-bottom: 2px;
}
.student-item:hover { background: var(--bg); }
.student-item.active {
  background: var(--primary-light); border-right: 3px solid var(--primary);
}
.student-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.student-info { flex: 1; min-width: 0; }
.student-name { font-size: 14px; font-weight: 600; color: var(--text); }
.student-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Main content (teacher page) */
.main-content {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.main-content.hidden { display: none; }

.empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); text-align: center; gap: 12px;
}
.empty-icon { font-size: 48px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-mid); }
.empty-state p  { font-size: 14px; }

/* Cards */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
  border: 1px solid var(--border);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 16px; font-weight: 700; }

/* AI summary */
.ai-summary-box {
  background: #f5f3ff; border: 1px solid #ddd6fe;
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px;
}
.ai-summary-box.hidden { display: none; }
.ai-label { font-size: 12px; font-weight: 700; color: #6d28d9; margin-bottom: 6px; }
.ai-summary-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all 0.2s; color: var(--muted);
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 26px; margin-bottom: 8px; }
.file-upload-area p { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.file-upload-area small { font-size: 12px; }
.file-preview {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--bg); border-radius: var(--radius-xs); border: 1px solid var(--border);
}
.file-preview.hidden { display: none; }
.file-icon { font-size: 20px; }
.file-name  { flex: 1; font-size: 13px; font-weight: 500; }
.remove-file {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted); line-height: 1; padding: 0 4px;
}
.remove-file:hover { color: var(--danger-text); }
.form-actions { margin-top: 16px; }

/* Feedback list */
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; background: var(--surface);
}
.feedback-item-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.feedback-date { font-size: 12px; color: var(--muted); }
.feedback-content { font-size: 14px; line-height: 1.7; color: var(--text-mid); }
.feedback-ai {
  margin-top: 10px; padding: 10px 12px;
  background: #f5f3ff; border-radius: var(--radius-xs);
  font-size: 13px; color: #5b21b6; border: 1px solid #ede9fe;
}
.feedback-file {
  margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.feedback-file a { color: var(--primary); text-decoration: none; font-weight: 500; }
.feedback-file a:hover { text-decoration: underline; }

/* Reply */
.reply-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.reply-input {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); font-size: 13px; font-family: inherit;
  resize: vertical; min-height: 70px; direction: rtl; transition: border-color 0.2s;
}
.reply-input:focus { outline: none; border-color: var(--primary); }
.reply-bubble {
  background: var(--primary-light); border-radius: var(--radius-xs);
  padding: 8px 12px; margin-top: 8px; font-size: 13px; color: var(--primary-dark);
}

/* Feedback admin table */
.feedback-preview {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-mid); font-size: 13px;
}
.feedback-excerpt {
  max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--text-mid); display: inline;
}
.ai-badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 10px;
  background: #f5f3ff; color: #6d28d9; font-size: 11px; font-weight: 600;
  margin-right: 4px;
}
.file-badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 600;
  margin-right: 4px;
}
.feedback-link {
  color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.feedback-link:hover { text-decoration: underline; }

/* ===== ADMIN SIDEBAR LAYOUT ===== */
.admin-page {
  display: flex; min-height: 100vh; background: var(--bg); direction: rtl;
}

.admin-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0; width: 220px;
  background: var(--navy); display: flex; flex-direction: column;
  z-index: 200;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand-icon { font-size: 22px; flex-shrink: 0; opacity: 0.9; }
.sidebar-brand-name { font-size: 14px; font-weight: 700; color: #f1f5f9; letter-spacing: 0.01em; }
.sidebar-brand-sub  { font-size: 11px; color: #475569; margin-top: 1px; }

.sidebar-nav {
  flex: 1; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 1px; overflow-y: auto;
}

.sidebar-nav-item {
  display: flex; align-items: center; gap: 0;
  padding: 10px 14px; border-radius: 7px;
  border: none; background: none; cursor: pointer;
  font-family: 'Heebo', inherit; font-size: 13px; font-weight: 500;
  color: #64748b; width: 100%; text-align: right;
  transition: background 0.12s, color 0.12s; position: relative;
  letter-spacing: 0.01em;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.05); color: #cbd5e1; }
.sidebar-nav-item.active {
  background: rgba(37,99,235,0.16); color: #93c5fd; font-weight: 600;
}
.sidebar-nav-item.active::after {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: #3b82f6; border-radius: 0 3px 3px 0;
}
.nav-icon { display: none; } /* removed - text-only nav */

.sidebar-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px; border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 12px; font-weight: 600; color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 11px; color: #475569; margin-top: 1px; }
.sidebar-logout-btn {
  color: #475569; font-size: 15px; padding: 5px 7px;
  border-radius: 6px; text-decoration: none; transition: all 0.15s; line-height: 1;
}
.sidebar-logout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

.admin-main {
  flex: 1; margin-right: 220px; min-height: 100vh; overflow-x: hidden;
}
.admin-main .admin-wrap { max-width: 1280px; margin: 0 auto; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.text-danger  { color: var(--danger-text); }
.text-success { color: var(--success-text); }
.text-muted   { color: var(--muted); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-stats { flex-direction: column; }
  .dashboard-body { flex-direction: column; height: auto; }
  .sidebar { width: 100%; height: auto; border-left: none; border-bottom: 1px solid var(--border); }
  .top-header { padding: 0 16px; }
  .admin-panel { padding: 16px 14px; }
  .modal { padding: 22px 18px; }
  .admin-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; }
  .admin-main { margin-right: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .sidebar-nav-item { width: auto; padding: 8px 14px; }
  .sidebar-nav-item.active::after { display: none; }
  .sidebar-footer { padding: 10px 16px; }
}
