/* ═══════════════════════════════════════════════════════════════
   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(29, 99, 216, 0.15);
  color: var(--primary-light);
  box-shadow: 0 0 16px rgba(29, 99, 216, 0.3);
}

.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(19, 65, 145, 0.08);
  border: 1px solid rgba(19, 65, 145, 0.15);
  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; }

/* ── Payments Matrix Grid (v2) ───────────────────────────────── */
.matrix-month-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.matrix-session-badge {
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payments-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
}

.payments-grid th,
.payments-grid td {
  padding: 10px 8px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.payments-grid th {
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-main);
}

.payments-grid tbody tr {
  transition: background 0.15s ease;
}

.payments-grid tbody tr:hover {
  background: rgba(124, 58, 237, 0.04) !important;
}

/* Matrix Clickable Square (for per-session) */
.matrix-square {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  font-size: 0.88rem;
  user-select: none;
  position: relative;
  box-sizing: border-box;
}

.matrix-square:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.matrix-square.paid {
  background: rgba(16, 185, 129, 0.18);
  border: 2px solid #10b981;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.matrix-square.paid:hover {
  background: rgba(16, 185, 129, 0.32);
  border-color: #059669;
}

.matrix-square.unpaid {
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.matrix-square.unpaid:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #dc2626;
  color: #dc2626;
}

.matrix-square.empty {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.6;
}

body.theme-light .matrix-square.empty {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Matrix Clickable Bar (for monthly or registration fees) */
.matrix-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  min-height: 38px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
  width: auto;
  min-width: 140px;
  max-width: 280px;
  margin: 0 auto;
}

.matrix-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.matrix-bar.paid {
  background: rgba(16, 185, 129, 0.16);
  border: 2px solid #10b981;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.matrix-bar.paid:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #059669;
}

.matrix-bar.unpaid {
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.matrix-bar.unpaid:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: #dc2626;
  color: #dc2626;
}

.matrix-bar.empty {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  cursor: default;
  opacity: 0.6;
}

body.theme-light .matrix-bar.empty {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.matrix-icon-cross {
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.85;
}

.matrix-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.matrix-status-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin-inline-start: 4px;
}

.matrix-status-tag.paid {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.matrix-status-tag.unpaid {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Matrix Legend */
.matrix-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: 0.84rem;
}

.matrix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

