/* AI Learning Progress — read-only transparency dashboard (Phase 24.2) */

.ai-learning-dashboard {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(0, 18, 24, 0.88);
  overflow: hidden;
}

.ai-learning-dashboard__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: rgba(0, 30, 36, 0.75);
  color: #a7f3d0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.ai-learning-dashboard__toggle:hover {
  background: rgba(0, 40, 48, 0.9);
}

.ai-learning-dashboard__toggle-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

.ai-learning-dashboard__body {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
}

.ai-learning-dashboard__meters {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.ai-learning-meter {
  display: grid;
  gap: 4px;
}

.ai-learning-meter__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.ai-learning-meter__label {
  color: #7dd3fc;
  letter-spacing: 0.04em;
}

.ai-learning-meter__pct {
  color: #e2e8f0;
  font-weight: 700;
}

.ai-learning-meter__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.ai-learning-meter__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0891b2, #34d399);
  transition: width 0.35s ease;
}

.ai-learning-meter__fill--ready {
  background: linear-gradient(90deg, #059669, #a3e635);
}

.ai-learning-dashboard__session {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-learning-session-chip {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 12, 28, 0.85);
  color: #bae6fd;
}

.ai-learning-session-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #f0fdf4;
  text-transform: none;
  letter-spacing: 0;
}

.ai-learning-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ai-learning-stat-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: rgba(0, 10, 22, 0.82);
}

.ai-learning-stat-card__title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
}

.ai-learning-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.ai-learning-stat-row strong {
  color: #f8fafc;
}

.ai-learning-stat-row--highlight strong {
  color: #6ee7b7;
}

.ai-learning-stat-row--warn strong {
  color: #fca5a5;
}

.ai-learning-dashboard__tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.ai-learning-dashboard__table-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.ai-learning-dashboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.ai-learning-dashboard th,
.ai-learning-dashboard td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  text-align: left;
}

.ai-learning-dashboard td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ai-learning-dashboard--mobile .ai-learning-dashboard__grid {
  grid-template-columns: 1fr;
}

.ai-learning-dashboard--mobile .ai-learning-dashboard__tables {
  grid-template-columns: 1fr;
}

.ai-learning-dashboard--mobile .ai-learning-meter__head {
  font-size: 0.68rem;
}

.ai-learning-dashboard__hint {
  margin: 10px 0 0;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.45;
}

.ai-learning-dashboard__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ai-learning-dashboard__badge--active {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.ai-learning-dashboard__badge--learning {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Admin analytics table */
.admin-ole-analytics {
  margin-top: 1rem;
  padding: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 8px;
  background: rgba(0, 22, 18, 0.92);
  text-align: left;
}

.admin-ole-analytics__note {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

.admin-ole-analytics .app-data-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.admin-ole-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-ole-status--learning {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
}

.admin-ole-status--calibrating {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
}

.admin-ole-status--stable {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}

.admin-ole-status--mature {
  color: #a3e635;
  background: rgba(163, 230, 53, 0.12);
}
