/* ==========================================================================
   QUICK RABBIT — SLATE & CORAL MODERN TMS DESIGN SYSTEM
   Airy Precision, Clean Slate Canvas (#f8fafc), Crisp White Cards & Vibrant Coral
   100% Compatible with 30e2574d DOM Selectors, Handlers & Functions
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Primary Brand: Stitch Warm Coral */
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #fff7ed;
  --primary-text: #c2410c;
  --primary-glow: rgba(249, 115, 22, 0.2);
  --primary-glow-focus: rgba(249, 115, 22, 0.16);

  /* Slate Scale */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Accent Accents */
  --accent-lime: #10b981;
  --accent-lime-bg: #ecfdf5;
  --accent-lime-text: #065f46;
  --accent-cyan: #0ea5e9;
  --accent-cyan-bg: #f0f9ff;
  --accent-cyan-text: #075985;

  /* Surfaces */
  --bg-app: #f8fafc;
  --bg-cream: #f8fafc;
  --bg-surface: #ffffff;
  --card-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-inset: #f8fafc;
  --bg-surface-elevated: #ffffff;

  /* Modern Hairline Borders */
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;
  --border-accent: rgba(249, 115, 22, 0.35);
  --border-focus: #f97316;

  /* High-Legibility Typography */
  --text-primary: #0f172a;
  --text-dark: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Actions */
  --btn-dark: #0f172a;
  --btn-dark-hover: #1e293b;
  --btn-dark-text: #ffffff;

  /* Semantic Feedback */
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;

  --info: #0ea5e9;
  --info-hover: #0284c7;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #075985;

  --warning: #d97706;
  --warning-hover: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fef3c7;
  --warning-text: #92400e;

  --success: #16a34a;
  --success-hover: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #166534;

  /* Modern Diffused Shadows */
  --shadow-subtle: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-command: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

  /* Geometry & Rounded Corners */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --radius-full: 9999px;

  --transition-fast: 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* En escritorios grandes, vista de pantalla completa sin scroll externo */
@media (min-width: 1025px) and (min-height: 700px) {
  html, body {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
}

/* En tablets o pantallas reducidas, permitir scroll fluido */
@media (max-width: 1024px), (max-height: 699px) {
  html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  display: flex !important;
  flex-direction: column !important;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  min-height: 0 !important;
}

/* Monospace chips & shortcuts */
kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-surface-inset);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

/* Animations */
@keyframes slideDownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelFadeLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes panelFadeRight {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Global Utility Classes */
.hidden {
  display: none !important;
}

.agent-switcher-menu.hidden {
  display: none !important;
}


/* ==========================================================================
   MATERIAL SYMBOLS OUTLINED (FASE 4 - reemplazo de SVG inline y emojis)
   ========================================================================== */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  flex-shrink: 0;
}
