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

:root {
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --bg-tertiary: #131b31;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-ruby: #ef4444;
  --accent-ruby-glow: rgba(239, 68, 68, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(13, 18, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.glow-emerald {
  box-shadow: 0 0 25px var(--accent-emerald-glow);
  border-color: var(--accent-emerald);
}

.glow-ruby {
  box-shadow: 0 0 25px var(--accent-ruby-glow);
  border-color: var(--accent-ruby);
}

/* Visor de Cámara y Animación de Escaneo */
.camera-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 2px solid var(--border-color);
  aspect-ratio: 4/3;
  width: 100%;
}

.camera-container.scanning {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

/* Línea láser de escaneo */
.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, transparent, var(--accent-emerald), transparent);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: scanAnim 2.5s linear infinite;
  z-index: 10;
  display: none;
}

.camera-container.scanning .scan-laser {
  display: block;
}

@keyframes scanAnim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Esquinas del escáner */
.scanner-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-emerald);
  border-style: solid;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.camera-container.scanning .scanner-corner {
  opacity: 1;
}

.corner-tl { top: 15px; left: 15px; border-width: 3px 0 0 3px; }
.corner-tr { top: 15px; right: 15px; border-width: 3px 3px 0 0; }
.corner-bl { bottom: 15px; left: 15px; border-width: 0 0 3px 3px; }
.corner-br { bottom: 15px; right: 15px; border-width: 0 3px 3px 0; }

/* Dashboard Badges */
.badge {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ruby {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Monospace text for accounts/receipts */
.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Pulsing record indicator */
.pulse-indicator {
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulseGlow 1.5s ease-out infinite;
  z-index: -1;
  opacity: 0;
}

.pulse-indicator.active::after {
  opacity: 1;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Premium micro-animations */
.button-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.button-premium:active::before {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0s;
}

/* Card report status */
.report-card {
  position: relative;
}

.report-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent-emerald);
  border-radius: 4px 0 0 4px;
}

.report-card.fraudulent::after {
  background: var(--accent-ruby);
}
