/* AI Guardrails Comparative Application Custom Styles */

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --f5-orange: #f97316;
  --f5-orange-glow: rgba(249, 115, 22, 0.25);
  --accent-blue: #38bdf8;
  --accent-purple: #c084fc;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: #475569;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.glass-card-f5 {
  border-color: var(--f5-orange);
  box-shadow: 0 0 20px var(--f5-orange-glow);
}

/* Navigation Tabs */
.nav-tab {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  color: var(--f5-orange);
  border-bottom-color: var(--f5-orange);
}

/* Status Badges */
.badge-blocked {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-sanitized {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-passed {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-warning {
  background-color: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rating Radar / Progress Bar */
.rating-bar-fill {
  height: 8px;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Topology Diagram Nodes */
.topology-node {
  padding: 16px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px dashed var(--border-color);
  text-align: center;
}

.topology-line {
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #f97316);
  flex-grow: 1;
}

/* Tooltip / Details Expandable */
.eval-details-box {
  background: #0f172a;
  border-left: 3px solid var(--f5-orange);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
