/* ==========================================================================
   BAOBAB RISE - Admin Panel Styles
   Matches Admin Panel Reference Image
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: calc(100vh - 65px);
  background-color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 50%, #075985 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  max-height: calc(100vh - 65px);
}

.sidebar-menu {
  list-style: none;
  padding: 16px 0;
}

.sidebar-section-title {
  padding: 16px 24px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bae6fd;
  font-weight: 800;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  margin: 3px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e0f2fe;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
}

.sidebar-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateX(3px);
}

.sidebar-item.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-item svg {
  width: 19px;
  height: 19px;
  opacity: 0.9;
  flex-shrink: 0;
}

.sidebar-item.active svg {
  opacity: 1;
  stroke: #0284c7;
}

.sidebar-submenu {
  list-style: none;
  padding-left: 44px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.sidebar-subitem {
  padding: 6px 12px;
  font-size: 12.5px;
  color: #bfdbfe;
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-subitem:hover {
  color: #ffffff;
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #f8fafc;
}

/* Top Header */
.admin-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-header-title h1 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.admin-header-title span {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-select-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-select-pill:hover {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-select-pill select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

.admin-notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s;
}

.admin-notification-bell:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0284c7;
}

.admin-user-meta {
  line-height: 1.2;
}

.admin-user-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.admin-user-role {
  font-size: 11px;
  color: #0284c7;
  font-weight: 700;
  text-transform: uppercase;
}

/* Dashboard Body Container */
.admin-body {
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Top 6 KPI Stat Cards */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

@media (max-width: 1280px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kpi-icon-blue { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); }
.kpi-icon-pink { background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); }
.kpi-icon-amber { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.kpi-icon-emerald { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); }
.kpi-icon-purple { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); }
.kpi-icon-navy { background: linear-gradient(135deg, #334155 0%, #0f172a 100%); }

.kpi-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-title {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}

.kpi-value {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.kpi-subtext {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 700;
  white-space: nowrap;
}

/* Charts & Widgets Rows */
.admin-grid-row-1 {
  display: grid;
  grid-template-columns: 320px 280px 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .admin-grid-row-1 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .admin-grid-row-1 {
    grid-template-columns: 1fr;
  }
}

/* Dedicated Analytics & Growth Charts Row */
.admin-grid-row-charts {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .admin-grid-row-charts {
    grid-template-columns: 1fr;
  }
}

/* Professional Bar Chart System */
.pro-bar-chart-wrapper {
  display: flex;
  flex-direction: column;
  height: 250px;
  padding: 10px 0 0;
  position: relative;
}

.chart-canvas-area {
  flex: 1;
  display: flex;
  position: relative;
  min-height: 200px;
}

.chart-y-axis {
  width: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 26px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-align: right;
  padding-right: 8px;
  user-select: none;
}

.chart-grid-bars-area {
  flex: 1;
  position: relative;
  border-bottom: 2px solid #cbd5e1;
  border-left: 1px solid #f1f5f9;
}

.gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #f1f5f9;
  pointer-events: none;
}

.target-benchmark-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px dashed #f59e0b;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.benchmark-pill {
  position: absolute;
  right: 4px;
  top: -10px;
  background: #fef3c7;
  color: #b45309;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  letter-spacing: 0.3px;
}

.bars-flex-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 6;
}

.bar-interactive-col {
  flex: 1;
  max-width: 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bar-interactive-col:hover {
  transform: translateY(-3px);
}

.bar-val-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.bar-val-badge.above {
  color: #15803d;
}

.bar-track {
  width: 100%;
  max-width: 32px;
  height: calc(100% - 46px);
  background: #f8fafc;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.bar-fill-dynamic {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.bar-glow-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px 6px 0 0;
}

.bar-grade-name {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-top: 6px;
  white-space: nowrap;
}

.bar-count-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
}

.chart-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-legend-items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-chip {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-color-line {
  width: 14px;
  height: 2px;
  border-top: 2px dashed #f59e0b;
  display: inline-block;
}

/* Student Growth Trajectory Chart & Mini Stat Cards */
.pro-growth-chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.growth-metrics-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .growth-metrics-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.growth-mini-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.growth-mini-stat:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.gms-icon {
  font-size: 18px;
}

.gms-val {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.1;
}

.gms-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
}

.gms-sub {
  font-size: 9.5px;
  font-weight: 700;
  margin-top: 1px;
}

.admin-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-card:hover {
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.card-dropdown {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: #475569;
  outline: none;
}

.card-view-all {
  font-size: 12px;
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.card-view-all:hover {
  text-decoration: underline;
}

/* Donut & Rating Gauge */
.donut-gauge-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.gauge-circle {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gauge-center-text {
  position: absolute;
  text-align: center;
  line-height: 1.1;
}

.gauge-score {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.gauge-stars {
  color: #f59e0b;
  font-size: 11px;
}

.rating-bars-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.rating-bar-label {
  width: 80px;
  color: #475569;
  white-space: nowrap;
}

.rating-progress-track {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.rating-progress-fill {
  height: 100%;
  border-radius: 4px;
}

.rating-bar-pct {
  width: 28px;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

/* Today Activity Completion Donut */
.activity-donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.activity-donut-center {
  position: absolute;
  text-align: center;
}

.activity-donut-ratio {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.activity-donut-status {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.activity-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.activity-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-count {
  font-weight: 700;
  color: #0f172a;
}

/* Class Participation Bar Chart */
.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding: 10px 10px 0;
  border-bottom: 2px solid #e2e8f0;
  gap: 12px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.bar-pct-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
}

.bar-class-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-top: 6px;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.quick-action-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.quick-action-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.qa-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Row 2: Tables & Modules */
.admin-grid-row-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  background: #f8fafc;
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.trainer-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trainer-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.trainer-name-col {
  line-height: 1.2;
}

.trainer-full-name {
  font-weight: 700;
  color: #0f172a;
}

.trainer-school-sub {
  font-size: 10.5px;
  color: #64748b;
}

/* Module Progress List */
.module-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.module-item-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.module-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.module-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e293b;
}

.module-meta-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-rating-star {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 700;
}

.module-bar-track {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.module-bar-fill {
  height: 100%;
  border-radius: 4px;
}

/* Row 3: Payment & Billing */
.payment-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.payment-kpi-card {
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.pay-card-green { background: #16a34a; }
.pay-card-blue { background: #0284c7; }
.pay-card-amber { background: #f59e0b; }
.pay-card-red { background: #e11d48; }

.pay-kpi-value {
  font-size: 20px;
  font-weight: 800;
}

.pay-kpi-label {
  font-size: 11.5px;
  opacity: 0.9;
  font-weight: 600;
}

/* Row 4: Live Feed & Insights */
.admin-grid-row-4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.live-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
}

.live-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.feed-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.feed-subtext {
  font-size: 11px;
  color: #64748b;
}

.feed-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* Status pills */
.status-pill {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.status-pill.paid { background: #dcfce7; color: #15803d; }
.status-pill.pending { background: #fee2e2; color: #dc2626; }
.status-pill.excellent { background: #dcfce7; color: #16a34a; }
.status-pill.good { background: #e0f2fe; color: #0284c7; }

.btn-sm-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sm-action:hover {
  background: #e2e8f0;
}

.btn-sm-action.primary {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

.btn-sm-action.primary:hover {
  background: #0369a1;
}

@media (max-width: 1400px) {
  .admin-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-grid-row-1 { grid-template-columns: 1fr 1fr; }
  .admin-grid-row-2 { grid-template-columns: 1fr; }
  .admin-grid-row-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ULTRA-PREMIUM MODERN DATA TABLES & DASHBOARD COMPONENTS
   ========================================================================== */

.data-table,
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.data-table th,
.admin-table th {
  background: #f8fafc;
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.data-table td,
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.data-table tr:last-child td,
.admin-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td,
.admin-table tr:hover td {
  background: #f8fafc;
}

/* Modern Attendance Metric Cards */
.attendance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.attendance-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.attendance-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.attendance-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.attendance-kpi-val {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.attendance-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.attendance-kpi-sub {
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}

/* Attendance Toggle Badge */
.attendance-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.attendance-toggle-pill.Present {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.attendance-toggle-pill.Present:hover {
  background: #bbf7d0;
  transform: scale(1.03);
}

.attendance-toggle-pill.Absent {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.attendance-toggle-pill.Absent:hover {
  background: #fecaca;
  transform: scale(1.03);
}

.attendance-toggle-pill.Late {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.attendance-toggle-pill.Late:hover {
  background: #fde68a;
  transform: scale(1.03);
}

/* Search & Filter Toolbar */
.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
  gap: 8px;
  width: 280px;
  transition: all 0.2s;
}

.search-input-box:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-input-box input {
  border: none;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  color: #0f172a;
}

/* Comprehensive Modern Data Table Styles */
.data-table,
.admin-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13.5px !important;
  color: #1e293b;
}

.data-table th,
.admin-table th {
  background: #f8fafc !important;
  padding: 14px 18px !important;
  text-align: left !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #475569 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 2px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.data-table td,
.admin-table td {
  padding: 15px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
}

.data-table tbody tr:hover td,
.admin-table tbody tr:hover td {
  background-color: #f8fafc !important;
}

.table-responsive-box {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

/* Curriculum Pillar Modern Cards */
.curriculum-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.curriculum-module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.curriculum-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
  border-color: #cbd5e1;
}

.curriculum-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.curriculum-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Assessment Score Cards */
.assessment-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.assessment-student-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.assessment-student-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.assessment-metric-bar {
  margin: 10px 0;
}

.assessment-metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.assessment-bar-bg {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.assessment-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* Reports Center Cards */
.report-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.report-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.report-action-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,132,199,0.08);
}

/* Communication Broadcast Box */
.comm-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .comm-layout-grid {
    grid-template-columns: 1fr;
  }
}

.comm-template-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  margin-right: 6px;
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
}

.comm-template-chip:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

/* Responsive Admin Layout for Mobile & Tablet */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    max-height: none;
    overflow-x: auto;
    flex-direction: row;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .sidebar-menu {
    display: flex;
    flex-direction: row;
    padding: 8px 12px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .sidebar-section-title {
    display: none;
  }
  .sidebar-item {
    margin: 2px 4px;
    padding: 8px 12px;
    font-size: 12.5px;
    white-space: nowrap;
    border-radius: 8px;
  }
  .admin-main {
    padding: 16px 12px;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-grid-top,
  .admin-grid-row-2,
  .admin-grid-row-3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 600px) {
  .kpi-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

