/*!
 * Assets/Modules/base.css
 * YatraPilot Studio — Command Center Terminal Theme (Dark)
 * (c) 2025 YatraPilot Systems — All rights reserved.
 * VERSION: v3.0.0 — Terminal / Operator Release
 */

/* ====================================================================== */
/* THEME VARIABLES (Terminal / High-Contrast Dark)                        */
/* ====================================================================== */
:root {
  --bg: #090e16;
  --surface: #111827;
  --surface-2: #0f172a;

  /* Primary: Emerald Operator Green */
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.2);
  --primary-dim: rgba(16, 185, 129, 0.1);

  /* Accents */
  --accent: #8b5cf6;  /* Purple Pulse */
  --warning: #f59e0b; /* Amber Alert */
  --danger: #ef4444;  /* System Error */
  
  --text: #f8fafc;
  --muted: #64748b;

  --card-border: rgba(255, 255, 255, 0.08);
  --glass: rgba(17, 24, 39, 0.7);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Sharp Glow Shadows */
  --shadow-sm: 0 0 10px rgba(0,0,0,0.5);
  --shadow-md: 0 0 20px rgba(16, 185, 129, 0.1);
  --shadow-glow: 0 0 15px var(--primary-glow);

  /* Fonts: Professional Monospace for Data */
  --font-family: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 120ms;
}

/* Base Layout ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Subtle CRT Scanline Effect */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 9999;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

.container { 
  max-width: 1500px; 
  margin: 0 auto; 
  padding: 24px; 
  box-sizing: border-box; 
}

/* Typography ----------------------------------------------------------- */
.h1 { 
  font-family: var(--font-mono);
  font-size: 24px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 15px;
}

.lead { font-family: var(--font-mono); color: var(--muted); font-size: 14px; }
.small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ====================================================================== */
/* CARDS (Bento Style)                                                    */
/* ====================================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 2px; height: 100%;
  background: var(--primary);
  opacity: 0.3;
}

.card.interactive:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
}

/* ====================================================================== */
/* BUTTONS (Operator Actions)                                             */
/* ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  border: 1px solid transparent;
}

/* Outline: Ghost Terminal */
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Dotted: Debug Style */
.btn-dotted {
  border: 1px dashed var(--muted);
  color: var(--muted);
}
.btn-dotted:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Filled: Matrix Green */
.btn-filled {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
.btn-filled:hover {
  background: #14d393;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.03);
}

.btn-sm { padding: 4px 10px; font-size: 10px; }

/* ====================================================================== */
/* INPUTS & FORMS                                                         */
/* ====================================================================== */
.form-control {
  background: #000;
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-family: var(--font-mono);
  transition: all var(--fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-dim);
}

.form-control::placeholder { color: #334155; }

/* ====================================================================== */
/* TABLES (Data Grid)                                                     */
/* ====================================================================== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-family: var(--font-mono);
}

.table thead th {
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--card-border);
}

.table tbody td {
  background: rgba(255,255,255,0.02);
  padding: 12px;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.table tbody tr td:first-child { border-left: 1px solid var(--card-border); border-radius: 8px 0 0 8px; }
.table tbody tr td:last-child { border-right: 1px solid var(--card-border); border-radius: 0 8px 8px 0; }

/* ====================================================================== */
/* TOASTS & FEEDBACK                                                      */
/* ====================================================================== */
.toast {
  background: #000;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-mono);
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  font-size: 12px;
}

.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--primary); color: var(--primary); }

/* ====================================================================== */
/* SCROLLBARS (Minimalist Matrix)                                         */
/* ====================================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ====================================================================== */
/* ANIMATIONS                                                             */
/* ====================================================================== */
.fade-in { animation: cmdFade 400ms var(--ease) forwards; }
@keyframes cmdFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================================== */
/* END OF FILE — YatraPilot Studio v3.0                                   */
/* ====================================================================== */