/* ==========================================================================
   NovaBank AI - Estilos Personalizados y Animaciones
   ========================================================================== */

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

:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(17, 24, 39, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --rose-glow: rgba(244, 63, 94, 0.25);
  --emerald-glow: rgba(16, 185, 129, 0.25);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: #f1f5f9;
  overflow-x: hidden;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-panel-elevated {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* Glowing Elements */
.glow-cyan {
  box-shadow: 0 0 20px var(--cyan-glow);
}

.glow-rose {
  box-shadow: 0 0 25px var(--rose-glow);
}

.glow-emerald {
  box-shadow: 0 0 20px var(--emerald-glow);
}

.glow-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.glow-indigo {
  box-shadow: 0 0 20px var(--indigo-glow);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Pulse Animations */
@keyframes stepPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

.animate-step-pulse {
  animation: stepPulse 1.2s infinite ease-in-out;
}

@keyframes laserSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.laser-border {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
  background-size: 200% 100%;
  animation: laserSweep 3s infinite linear;
}

/* Chat bubble styling */
.chat-bubble-user {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-agent {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.chat-bubble-blocked {
  background: rgba(88, 28, 28, 0.4);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-bottom-left-radius: 4px;
}

.chat-bubble-scope-blocked {
  background: rgba(120, 53, 15, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-bottom-left-radius: 4px;
}

/* Pipeline stepper connectors */
.step-connector {
  transition: all 0.3s ease;
}

.step-connector.active {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.step-connector.blocked {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Syntax highlighted JSON box */
pre.json-viewer {
  background-color: #050811;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.json-key { color: #38bdf8; font-weight: 500; }
.json-string { color: #a7f3d0; }
.json-number { color: #fde047; }
.json-boolean { color: #f472b6; font-weight: 600; }
.json-null { color: #94a3b8; font-style: italic; }

/* Modal transition */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
