/* base.css - Security Oversight Dark Theme */

:root {
  /* Grafana-inspired color palette */
  --gray-850: #181b1f;
  --gray-900: #111217;
  --gray-950: #0b0c0e;
  --gray-800: #1e2228;
  --gray-700: #2c3235;
  --gray-600: #3d4449;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #c7d0d9;

  --accent-blue: #5794f2;
  --accent-green: #73bf69;
  --accent-red: #f2495c;
  --accent-orange: #ff9830;
  --accent-purple: #b877d9;

  --bg-body: var(--gray-900);
  --bg-panel: var(--gray-850);
  --border-color: var(--gray-700);
  --text-primary: var(--gray-300);
  --text-secondary: var(--gray-400);
  --text-muted: var(--gray-500);

  /* Reader prompt variables */
  --ui-accent: rgba(255, 255, 255, 0.97);
  --ui-depth: 999999;
  --ui-blur: 8px;
  --content-fade: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.85) 15%, var(--ui-accent) 40%);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
  color: var(--text-secondary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #7db3ff;
}

/* Monospace for data */
.font-mono, code, .data-value {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Utility classes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-orange { color: var(--accent-orange); }
.text-purple { color: var(--accent-purple); }

.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }

.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Animations */
@keyframes blinker {
  50% { opacity: 0; }
}

.blink {
  animation: blinker 1.5s linear infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(87, 148, 242, 0.3);
  animation: scan 3s linear infinite;
  pointer-events: none;
}

/* Scrollbar */
.scroll-hide::-webkit-scrollbar {
  display: none;
}

.scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
