/* ADMIN THEME CERAH & MODERN */
.admin-body.light-theme {
  background-color: #f8fafc;
  color: #0f172a;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 270px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
}

.brand-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f766e;
}

.brand-text span {
  font-size: 0.7rem;
  color: #64748b;
  display: block;
}

.sidebar-nav {
  padding: 1.2rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.sidebar-btn.active {
  background: #0d9488;
  color: #ffffff;
}

.sidebar-footer {
  padding: 1.2rem;
  border-top: 1px solid #f1f5f9;
}

.admin-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
}

.admin-topbar h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-subtext {
  font-size: 0.85rem;
  color: #64748b;
}

.admin-badge {
  background: #ccfbf1;
  color: #0f766e;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.card-green { border-top: 4px solid #10b981; }
.card-amber { border-top: 4px solid #f59e0b; }
.card-blue  { border-top: 4px solid #0284c7; }
.card-purple{ border-top: 4px solid #8b5cf6; }

.stat-label { font-size: 0.78rem; color: #64748b; font-weight: 700; margin-bottom: 0.4rem; }
.stat-value { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.4rem; color: #0f172a; }
.stat-sub { font-size: 0.74rem; color: #64748b; }

.text-emerald { color: #059669; }
.text-amber { color: #d97706; }
.text-sky { color: #0284c7; }
.text-indigo { color: #6366f1; }

.admin-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admin-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.6rem;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.box-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.tag-live {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.progress-item { margin-bottom: 1.1rem; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.45rem; color: #334155; font-weight: 600; }

.bar-bg { width: 100%; height: 9px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bg-kids { background: #f97316; }
.bg-school { background: #0284c7; }
.bg-purple { background: #8b5cf6; }
.bg-amber { background: #f59e0b; }

.activity-feed { display: flex; flex-direction: column; gap: 1.1rem; }
.feed-item { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.82rem; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.feed-dot.kids { background: #f97316; }
.feed-dot.emerald { background: #10b981; }

.feed-item strong { color: #0f172a; display: block; margin-bottom: 0.15rem; }
.feed-item p { color: #475569; margin-bottom: 0.2rem; }
.feed-item small { color: #94a3b8; font-size: 0.72rem; }

.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; text-align: left; }
.admin-table th { padding: 0.85rem 0.9rem; background: #f8fafc; color: #475569; font-weight: 800; border-bottom: 2px solid #e2e8f0; }
.admin-table td { padding: 0.85rem 0.9rem; border-bottom: 1px solid #f1f5f9; color: #334155; }

.badge-status { padding: 0.25rem 0.6rem; border-radius: 6px; font-size: 0.72rem; font-weight: 800; }
.badge-status.kids { background: #ffedd5; color: #c2410c; }
.badge-status.purple { background: #ede9fe; color: #6d28d9; }
.badge-status.success { background: #dcfce7; color: #15803d; }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-panel-grid { grid-template-columns: 1fr; }
}
