/* Self-Healing Dashboard Styles */

.healing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #fff; }
.stat-card .stat-label { font-size: 11px; color: #888; margin-top: 4px; text-transform: uppercase; }
.stat-card.stat-green .stat-value { color: #22c55e; }
.stat-card.stat-blue .stat-value { color: #3b82f6; }
.stat-card.stat-orange .stat-value { color: #f59e0b; }
.stat-card.stat-red .stat-value { color: #ef4444; }

/* Override Panel */
.override-panel {
  background: linear-gradient(135deg, #1a0a0a, #2a1515);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: #ef4444; }
  50% { border-color: #f59e0b; }
}
.override-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.override-header h3 { margin: 0; color: #ef4444; font-size: 18px; }
.override-badge { background: #ef444433; color: #ef4444; padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.override-info p { margin: 6px 0; color: #ccc; font-size: 13px; }
.override-info code { background: #333; padding: 2px 6px; border-radius: 4px; color: #f59e0b; }
.override-form { margin: 16px 0; }
.override-form label { display: block; color: #aaa; font-size: 12px; margin-bottom: 4px; }
.override-form .form-input {
  width: 100%;
  padding: 10px;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}
.override-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Knowledge Base Grid */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.kb-card {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.kb-card .kb-count { font-size: 24px; font-weight: 700; color: #EA8623; }
.kb-card .kb-label { font-size: 10px; color: #888; margin-top: 4px; text-transform: uppercase; }

/* Event Log */
.event-log {
  background: #0a0a14;
  border: 1px solid #222;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 12px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid #1a1a1a;
}
.event-row:hover { background: #111122; }
.event-time { color: #555; min-width: 70px; font-size: 11px; }
.event-icon { font-size: 14px; }
.event-detail { color: #ccc; flex: 1; }
.event-detail code { background: #222; padding: 1px 4px; border-radius: 3px; color: #EA8623; }
.event-detail .log-text { color: #666; }
.event-empty { padding: 20px; text-align: center; color: #444; }
.badge-ok { background: #22c55e33; color: #22c55e; padding: 1px 6px; border-radius: 4px; font-size: 10px; }
.badge-fail { background: #ef444433; color: #ef4444; padding: 1px 6px; border-radius: 4px; font-size: 10px; }
