/* ═══════════════════════════════════════════════════════════════
   LOTUS ACADEMY — Admin-Specific Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Admin Dashboard Layout ──────────────────────────────────── */
.admin-dashboard .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.admin-dashboard .charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .admin-dashboard .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Chart Cards */
.admin-dashboard .chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient bar */
.admin-dashboard .chart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0.7;
}

.admin-dashboard .chart-card canvas {
  max-height: 250px;
}

/* Activity Card */
.admin-dashboard .activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.admin-dashboard .activity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient-2);
  opacity: 0.7;
}

.admin-dashboard .activity-list {
  list-style: none;
}

.admin-dashboard .activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  transition: background 0.15s ease;
}

.admin-dashboard .activity-item:last-child {
  border-bottom: none;
}

.admin-dashboard .activity-item .activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-dashboard .activity-item .activity-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Sora', monospace;
  margin-right: auto;
}

/* ── Step Indicator ──────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.step-dot.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.18);
  color: var(--primary-light);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.step-dot.completed {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  border-radius: var(--radius-pill);
}

.step-line.completed {
  background: var(--brand-gradient);
}

/* ── Course Cards ────────────────────────────────────────────── */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.course-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lotus);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card .course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.course-card .course-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.course-card .course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-card .course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card .capacity-bar {
  margin-top: 14px;
}

.course-card .capacity-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.course-card .schedule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.course-card .schedule-tag {
  background: rgba(109, 40, 217, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--primary-light);
  font-weight: 600;
}

.course-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Payment Grid ────────────────────────────────────────────── */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.payment-student-card {
  padding: 18px !important;
}

.psc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.psc-name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.psc-phone {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.psc-squares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.pay-square {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: var(--bg-input);
}

.pay-square:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.pay-square.paid {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.07);
}

.pay-square.unpaid {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.pay-square.pending {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.pay-square-check {
  margin-bottom: 4px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-square.paid .pay-square-check    { color: var(--success); }
.pay-square.pending .pay-square-check { color: var(--warning-light); }

.pay-square-course {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-square-teacher {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-square-amount {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

/* ── Attendance Grid ─────────────────────────────────────────── */
.att-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.att-student-card {
  padding: 18px !important;
}

.asc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.asc-name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.asc-squares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}

.att-square {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 6px;
  text-align: center;
  font-size: 0.74rem;
  transition: all 0.18s ease;
}

.att-square.present {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
  color: var(--success);
}

.att-square.absent {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.07);
  color: var(--danger-light);
}

.att-square.late {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
  color: var(--warning-light);
}

.att-square.excused {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.07);
  color: #60A5FA;
}

.att-square-icon { margin-bottom: 2px; }

.att-square-date {
  font-size: 0.66rem;
  color: var(--text-muted);
}

/* ── Icon Sizing ─────────────────────────────────────────────── */
.nav-item .icon svg,
.sidebar-header .logo svg {
  vertical-align: middle;
}

.btn svg {
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Quick Links Grid ────────────────────────────────────────── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-icon svg        { width: 20px; height: 20px; }
.empty-state .icon svg { width: 48px; height: 48px; }
