/* ===================================================
   TARQUE EDUCATION — PANEL CSS
   Admin & Student Panel Styles
=================================================== */

/* ─── Layout ─────────────────────────────────── */
.panel-body { background: #f0f4f1; min-height: 100vh; font-family: 'DM Sans', sans-serif; }

.panel-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────── */
.panel-sidebar {
  width: 260px;
  height: 100vh;
  background: #0d1f17;
  display: block;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-icon { font-size: 1.5rem; }
.sidebar-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sidebar-close {
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 1.1rem;
  display: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.sidebar-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green, #1a7a4a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem;
  overflow: hidden; flex-shrink: 0;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-avatar { background: #1a3a4a; }

.sidebar-user-info strong { color: #fff; font-size: 0.9rem; display: block; }
.sidebar-user-info span { color: rgba(255,255,255,0.5); font-size: 0.78rem; }

.sidebar-nav { padding: 8px 0 100px;min-height: 0; }

.nav-group { margin-bottom: 4px; }
.nav-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  padding: 6px 20px 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  position: relative;
  border-radius: 0;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link.active {
  color: #fff;
  background: rgba(26,122,74,0.25);
  border-left: 3px solid var(--green, #1a7a4a);
}
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.nav-logout { color: rgba(255,100,100,0.7) !important; }
.nav-logout:hover { color: #ff6b6b !important; background: rgba(255,100,100,0.1) !important; }

/* ─── Main Content Area ──────────────────────── */
.panel-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.panel-topbar {
  background: #fff;
  border-bottom: 1px solid #e8f0ea;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-toggle {
  background: none; border: none;
  display: none;
  flex-direction: column;
  gap: 5px; cursor: pointer;
  padding: 6px; border-radius: 6px;
}
.sidebar-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #333;
  border-radius: 2px;
}
.topbar-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a2e22;
  flex: 1;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { color: #556b5e; font-size: 0.875rem; }
.topbar-alert {
  background: #fef3cd;
  color: #856404;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.panel-content {
  padding: 28px 24px;
  flex: 1;
}

/* ─── Page Header ────────────────────────────── */
.page-header { margin-bottom: 24px; }
.page-title { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: #1a2e22; margin: 0 0 4px; }
.page-subtitle { color: #6b8576; font-size: 0.9rem; margin: 0; }

/* ─── Alerts ─────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ─── Stats ──────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid #e0e0e0;
}
.stat-card.stat-primary { border-left-color: #1a7a4a; }
.stat-card.stat-success { border-left-color: #28a869; }
.stat-card.stat-info    { border-left-color: #17a2b8; }
.stat-card.stat-warning { border-left-color: #ffc107; }
.stat-card.stat-danger  { border-left-color: #dc3545; }
.stat-card.stat-secondary { border-left-color: #6c757d; }

.stat-icon-wrap { font-size: 1.6rem; }
.stat-icon { font-size: 2rem; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: #1a2e22; }
.stat-label { color: #6b8576; font-size: 0.82rem; font-weight: 500; }
.stat-link {
  color: var(--green, #1a7a4a);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}
.stat-link:hover { text-decoration: underline; }

/* ─── Charts ─────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.chart-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.chart-card h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: #1a2e22; margin: 0 0 16px; }

/* ─── Tables ─────────────────────────────────── */
.tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.table-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f4f1;
}
.table-header h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: #1a2e22; margin: 0; }

.table-search {
  border: 1px solid #dde8e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  width: 200px;
}
.table-search:focus { border-color: var(--green, #1a7a4a); }

.table-responsive { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  background: #f7faf8;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: #556b5e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f4f7f5;
  color: #2d3d35;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafcfb; }

.table-user { display: flex; align-items: center; gap: 10px; }
.table-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green, #1a7a4a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  overflow: hidden; flex-shrink: 0;
}
.table-avatar img { width: 100%; height: 100%; object-fit: cover; }

.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.text-danger { color: #dc3545; }

/* ─── Quick Actions ──────────────────────────── */
.quick-actions-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.quick-actions-card h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: #1a2e22; margin: 0 0 16px; }
.quick-actions-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f0f4f1;
  border-radius: 10px;
  color: #1a2e22;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.quick-action:hover { background: var(--green, #1a7a4a); color: #fff; }

/* ─── Filters ────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-count { color: #6b8576; font-size: 0.875rem; white-space: nowrap; }

/* ─── Forms ──────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; color: #2d3d35; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dde8e1;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #2d3d35;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green, #1a7a4a); }
.form-textarea { resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--green, #1a7a4a); color: #fff; border-color: var(--green, #1a7a4a); }
.btn-primary:hover { background: #156039; border-color: #156039; }
.btn-outline { background: transparent; color: var(--green, #1a7a4a); border-color: var(--green, #1a7a4a); }
.btn-outline:hover { background: var(--green, #1a7a4a); color: #fff; }
.btn-success { background: #28a869; color: #fff; border-color: #28a869; }
.btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn.disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ─── Status Badges ──────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-badge.active   { background: #d4edda; color: #155724; }
.status-badge.inactive { background: #f0f0f0; color: #555; }
.status-badge.paid     { background: #d4edda; color: #155724; }
.status-badge.pending  { background: #fff3cd; color: #856404; }
.status-badge.overdue  { background: #f8d7da; color: #721c24; }
.status-badge.past     { background: #e2e3e5; color: #555; }
.status-badge.upcoming { background: #cce5ff; color: #004085; }

.type-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #e8f5ee;
  color: #1a7a4a;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.type-badge.pdf         { background: #fde8e8; color: #c0392b; }
.type-badge.notes       { background: #e8f0fe; color: #2563eb; }
.type-badge.assignment  { background: #fef3c7; color: #d97706; }
.type-badge.YOUTUBE     { background: #fde8e8; color: #c0392b; }
.type-badge.FILE        { background: #e8f5ee; color: #1a7a4a; }

/* ─── Grade Badges ───────────────────────────── */
.grade-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.grade-a { background: #d4edda; color: #155724; }
.grade-b { background: #cce5ff; color: #004085; }
.grade-c { background: #fff3cd; color: #856404; }
.grade-d { background: #fde8e8; color: #7f1d1d; }
.grade-f { background: #f8d7da; color: #721c24; }

.grade-scale-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-top: 20px;
}
.grade-scale-card h4 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 12px; }
.grade-scale { display: flex; gap: 10px; flex-wrap: wrap; }
.grade-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: 0.82rem; }
.grade-item.grade-a { background: #d4edda; color: #155724; }
.grade-item.grade-b { background: #cce5ff; color: #004085; }
.grade-item.grade-c { background: #fff3cd; color: #856404; }
.grade-item.grade-d { background: #fde8e8; color: #7f1d1d; }
.grade-item.grade-f { background: #f8d7da; color: #721c24; }
.g-letter { font-weight: 800; font-size: 1rem; }

/* ─── Progress Bar ───────────────────────────── */
.progress-bar-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #f0f4f1; border-radius: 20px;
  height: 6px; position: relative; min-width: 100px;
}
.progress-bar {
  height: 6px; border-radius: 20px;
  background: var(--green, #1a7a4a);
  max-width: 100%;
}
.progress-bar-wrap span {
  position: absolute; right: 0; top: 8px;
  font-size: 0.75rem; color: #556b5e; white-space: nowrap;
}

/* ─── Modals ─────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-lg { max-width: 780px; }
.modal-video { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e8f0ea;
  position: sticky; top: 0;
  background: #fff; z-index: 1;
}
.modal-header h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0; font-size: 1.1rem; }
.modal-close {
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
  color: #6b8576; padding: 4px 8px;
  border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { background: #f0f4f1; color: #1a2e22; }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 16px; border-top: 1px solid #e8f0ea; margin-top: 8px;
}

/* ─── Video Embed ────────────────────────────── */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; }

/* ─── Video Grid ─────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder { width: 100%; height: 100%; background: #1a2e22; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.video-thumbnail:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 56px; height: 56px;
  background: var(--green, #1a7a4a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.video-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.video-info { padding: 14px; }
.video-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; color: #1a2e22; margin: 0 0 6px; }
.video-desc { font-size: 0.82rem; color: #6b8576; margin-bottom: 8px; }
.video-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: #8fa599; margin-bottom: 10px; }

/* ─── Assignments ────────────────────────────── */
.assignments-list { display: flex; flex-direction: column; gap: 12px; }
.assignment-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 4px solid #e0e0e0;
}
.assignment-card.active  { border-left-color: var(--green, #1a7a4a); }
.assignment-card.urgent  { border-left-color: #ffc107; }
.assignment-card.overdue { border-left-color: #dc3545; }
.assignment-icon { font-size: 2rem; flex-shrink: 0; }
.assignment-info { flex: 1; }
.assignment-info h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 4px; }
.assignment-info p { color: #6b8576; font-size: 0.875rem; margin: 0 0 8px; }
.assignment-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: #8fa599; }
.assignment-actions { flex-shrink: 0; }
.due-badge { font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.due-badge.active  { background: #d4edda; color: #155724; }
.due-badge.urgent  { background: #fff3cd; color: #856404; }
.due-badge.overdue { background: #f8d7da; color: #721c24; }

/* ─── Tests Grid ─────────────────────────────── */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.test-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.test-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.test-type-badge {
  background: #e8f5ee; color: var(--green, #1a7a4a);
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.test-title { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 6px; font-size: 1rem; }
.test-desc { font-size: 0.82rem; color: #6b8576; margin-bottom: 10px; }
.test-details { margin-bottom: 12px; }
.test-detail { font-size: 0.82rem; color: #8fa599; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }

/* ─── Notifications List ─────────────────────── */
.notifications-list { display: flex; flex-direction: column; gap: 12px; }
.notification-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-left: 4px solid #e0e0e0;
}
.notification-item.info    { border-left-color: #17a2b8; }
.notification-item.success { border-left-color: #28a869; }
.notification-item.warning { border-left-color: #ffc107; }
.notification-item.danger  { border-left-color: #dc3545; }
.notif-icon { font-size: 1.5rem; flex-shrink: 0; }
.notif-content h4 { font-weight: 700; color: #1a2e22; margin: 0 0 4px; }
.notif-content p { color: #6b8576; font-size: 0.875rem; margin: 0 0 4px; }
.notif-time { font-size: 0.78rem; color: #adb5bd; }

/* ─── Course Detail ──────────────────────────── */
.course-detail-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.course-detail-banner { position: relative; aspect-ratio: 16/5; overflow: hidden; }
.course-detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.course-banner-placeholder { width: 100%; height: 100%; background: #1a2e22; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.course-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.course-banner-overlay h2 { color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; margin: 0 0 6px; }
.course-tag { background: var(--green, #1a7a4a); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.course-detail-body { padding: 24px; }
.course-stats-row { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.course-stat {
  flex: 1; min-width: 90px;
  text-align: center;
  padding: 12px;
  background: #f7faf8;
  border-radius: 10px;
}
.cs-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.cs-val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: #1a2e22; display: block; }
.cs-lbl { font-size: 0.75rem; color: #6b8576; }

.course-section { margin-bottom: 20px; }
.course-section h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 10px; font-size: 1rem; }
.course-section p { color: #4a5e52; font-size: 0.9rem; line-height: 1.7; }
.features-list { list-style: none; padding: 0; margin: 0; }
.features-list li { padding: 5px 0; color: #4a5e52; font-size: 0.9rem; }

.teacher-card-mini { display: flex; align-items: center; gap: 12px; }
.teacher-card-mini img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.teacher-avatar-mini {
  width: 48px; height: 48px;
  border-radius: 50%; background: var(--green, #1a7a4a);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.teacher-card-mini strong { display: block; font-weight: 700; color: #1a2e22; }
.teacher-card-mini span { font-size: 0.8rem; color: #6b8576; }

.course-quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e8f0ea; }
.quick-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: #f0f4f1;
  border-radius: 8px; color: #1a2e22; text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
}
.quick-link-btn:hover { background: var(--green, #1a7a4a); color: #fff; }

/* ─── Notices ────────────────────────────────── */
.notices-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #e0e0e0;
}
.notice-item.info    { border-left-color: #17a2b8; }
.notice-item.success { border-left-color: #28a869; }
.notice-item.warning { border-left-color: #ffc107; }
.notice-item.danger  { border-left-color: #dc3545; }
.notice-header { display: flex; justify-content: space-between; margin-bottom: 8px; align-items: flex-start; }
.notice-header h4 { font-weight: 700; color: #1a2e22; margin: 0 0 4px; }
.notice-audience { font-size: 0.78rem; color: #6b8576; }
.notice-meta { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: #8fa599; flex-shrink: 0; }
.notice-body { color: #4a5e52; font-size: 0.875rem; line-height: 1.6; margin: 0 0 10px; }
.notice-actions { display: flex; gap: 8px; }

/* ─── Messages ───────────────────────────────── */
.messages-list { display: flex; flex-direction: column; gap: 8px; }
.message-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.message-item:hover { background: #f7faf8; transform: translateX(3px); }
.message-item.unread { background: #f0f8f4; border-left: 3px solid var(--green, #1a7a4a); }
.message-avatar {
  width: 40px; height: 40px;
  border-radius: 50%; background: var(--green, #1a7a4a);
  color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.message-header strong { color: #1a2e22; font-size: 0.95rem; }
.message-time { color: #adb5bd; font-size: 0.78rem; margin-left: auto; }
.message-email { font-size: 0.78rem; color: #6b8576; margin-bottom: 4px; }
.message-course { font-size: 0.78rem; color: var(--green, #1a7a4a); font-weight: 600; margin-bottom: 4px; }
.message-preview { font-size: 0.82rem; color: #6b8576; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; background: var(--green, #1a7a4a); border-radius: 50%; flex-shrink: 0; }
.message-detail { font-size: 0.9rem; }
.detail-row { margin-bottom: 8px; color: #2d3d35; }
.detail-row strong { color: #1a2e22; margin-right: 6px; }
.detail-row a { color: var(--green, #1a7a4a); }
.message-full-text { line-height: 1.8; color: #4a5e52; padding: 12px 0; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ─── Admin Grid Cards ───────────────────────── */
.courses-admin-grid, .teachers-admin-grid, .testimonials-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.course-admin-card, .teacher-admin-card, .testimonial-admin-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
}
.course-admin-card.inactive, .teacher-admin-card.inactive, .testimonial-admin-card.inactive { opacity: 0.65; }
.course-admin-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.course-admin-img img { width: 100%; height: 100%; object-fit: cover; }
.course-img-placeholder { width: 100%; height: 100%; background: #1a2e22; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.course-category-tag { position: absolute; top: 8px; right: 8px; background: var(--green, #1a7a4a); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.course-admin-body { padding: 14px; flex: 1; }
.course-admin-body h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 6px; font-size: 1rem; }
.course-admin-meta { display: flex; gap: 10px; font-size: 0.78rem; color: #6b8576; margin-bottom: 8px; }
.course-admin-price { margin-bottom: 8px; }
.course-admin-price s { color: #adb5bd; margin-right: 6px; }
.course-admin-price strong { color: var(--green, #1a7a4a); font-size: 1.1rem; }
.course-admin-actions { padding: 12px 14px; border-top: 1px solid #f0f4f1; display: flex; gap: 8px; }

.teacher-photo-wrap { padding: 20px 20px 0; display: flex; justify-content: center; }
.teacher-photo-wrap img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--green, #1a7a4a); }
.teacher-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--green, #1a7a4a); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2rem; border: 3px solid var(--green, #1a7a4a); }
.teacher-admin-info { padding: 12px 16px; flex: 1; text-align: center; }
.teacher-admin-info h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 4px; }
.teacher-admin-info p { font-size: 0.82rem; color: #6b8576; margin: 2px 0; }
.teacher-subject { color: var(--green, #1a7a4a) !important; font-weight: 600 !important; }
.teacher-admin-actions { padding: 12px 16px; display: flex; gap: 8px; border-top: 1px solid #f0f4f1; }

.testimonials-admin-grid { margin-top: 0; }
.testimonial-admin-card { padding: 18px; }
.testimonial-admin-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--green, #1a7a4a); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-admin-header .status-badge { margin-left: auto; }
.testimonial-text { font-size: 0.875rem; color: #4a5e52; font-style: italic; line-height: 1.6; flex: 1; }
.testimonial-admin-actions { padding-top: 10px; border-top: 1px solid #f0f4f1; display: flex; gap: 8px; }

/* ─── Toppers ────────────────────────────────── */
.toppers-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ─── Login Page ─────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1f17 0%, #1a7a4a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-container { width: 100%; max-width: 440px; }
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; color: #1a2e22; margin: 10px 0 4px; }
.login-brand p { color: #6b8576; margin: 0; font-size: 0.9rem; }
.login-logo { height: 60px; }
.login-logo-placeholder { font-size: 3rem; }
.login-form { margin-bottom: 20px; }
.input-password-wrap { position: relative; }
.input-password-wrap .form-input { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 0;
}
.login-back { text-align: center; margin-top: 16px; }
.login-back a { color: var(--green, #1a7a4a); text-decoration: none; font-size: 0.875rem; }
.login-demo { text-align: center; margin-top: 12px; color: #adb5bd; }

/* ─── Settings ───────────────────────────────── */
.settings-tabs {
  display: flex; gap: 4px;
  background: #f0f4f1;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.settings-tab {
  padding: 8px 18px;
  border: none; border-radius: 8px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  color: #6b8576; background: transparent;
  transition: all 0.2s;
}
.settings-tab.active, .settings-tab:hover { background: #fff; color: #1a2e22; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.settings-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a2e22; margin: 0 0 18px; font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid #f0f4f1; }
.settings-save-bar { text-align: right; padding: 20px 0 10px; }
.current-logo { margin-bottom: 8px; }

/* ─── Empty State ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-weight: 800; color: #1a2e22; font-size: 1.3rem; margin: 0 0 8px; }
.empty-state p { color: #6b8576; font-size: 0.9rem; max-width: 320px; margin: 0 auto; }

/* ─── Sidebar Overlay ────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .charts-row, .tables-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .panel-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .panel-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
  .sidebar-overlay.active { display: block; }
  .sidebar-close { display: block; }
  .sidebar-toggle { display: flex; }
  .panel-main { margin-left: 0; }
  .panel-content { padding: 16px; }
  .panel-topbar { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-form { flex-direction: column; }
  .modal { max-height: 95vh; }
  .video-grid { grid-template-columns: 1fr; }
  .courses-admin-grid, .teachers-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1.3rem; }
  .settings-tabs { gap: 2px; }
  .settings-tab { padding: 6px 12px; font-size: 0.8rem; }
}

/* ─── Welcome Banner ─────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, #1a7a4a 0%, #0d4a2d 100%);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.welcome-text h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.welcome-text p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.9rem; }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.welcome-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.welcome-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ─── Code tag ───────────────────────────────── */
code {
  background: #f0f4f1;
  color: #1a7a4a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: monospace;
}

/* ─── Stat card compact ──────────────────────── */
.stat-card .stat-details { flex: 1; }