/* WEQURI Design System - High-Tech AI Construction & Industrial Hybrid (Light & Dark) */
@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;700&display=swap');

:root {
  --wequri-bg: #f8fafc;
  --wequri-text: #0f172a;
  --wequri-dark: #070b14;
  --wequri-card: #ffffff;
  --wequri-border: rgba(226, 232, 240, 0.9);
  --wequri-amber: #f59e0b;
  --wequri-amber-glow: rgba(245, 158, 11, 0.25);
  --wequri-cyan: #06b6d4;
  --wequri-emerald: #10b981;
  --wequri-tosca: #0d9488;
  --wequri-tosca-glow: rgba(13, 148, 136, 0.25);
  --wequri-charcoal: #0a0f1d;
  --wequri-charcoal-card: #0e1626;
}

.dark {
  --wequri-bg: #070b14;
  --wequri-text: #f1f5f9;
  --wequri-card: #0d1527;
  --wequri-border: rgba(20, 184, 166, 0.2);
  --wequri-amber-glow: rgba(245, 158, 11, 0.35);
  --wequri-tosca-glow: rgba(20, 184, 166, 0.35);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--wequri-bg);
  color: var(--wequri-text);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Background Grid Pattern - Light & Dark */
.bg-grid-pattern {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Radial Glow */
.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(6, 182, 212, 0.06) 45%, transparent 70%);
}

.dark .bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(6, 182, 212, 0.05) 45%, transparent 70%);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.dark .glass-card {
  background: rgba(13, 21, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card-amber {
  background: rgba(254, 252, 243, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15);
}

.dark .glass-card-amber {
  background: rgba(18, 27, 49, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15);
}

/* CCTV Mockup Video Overlay */
.scanline-overlay {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.3)
  );
  background-size: 100% 4px;
}

/* Radar Sweep */
@keyframes radar-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.radar-beam {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), rgba(245, 158, 11, 0.9), transparent);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
  animation: radar-sweep 4s linear infinite;
}

/* AI Detection Bounding Box Pulse */
@keyframes bbox-pulse {
  0%, 100% { border-color: rgba(16, 185, 129, 0.9); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
  50% { border-color: rgba(52, 211, 153, 1); box-shadow: 0 0 20px rgba(52, 211, 153, 0.8); }
}

@keyframes bbox-danger {
  0%, 100% { border-color: rgba(239, 68, 68, 0.9); box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
  50% { border-color: rgba(248, 113, 113, 1); box-shadow: 0 0 24px rgba(248, 113, 113, 0.9); }
}

.bbox-safe {
  border: 2px solid #10b981;
  animation: bbox-pulse 2s ease-in-out infinite;
}

.bbox-hazard {
  border: 2px solid #ef4444;
  animation: bbox-danger 1.2s ease-in-out infinite;
}

.bbox-equipment {
  border: 2px solid #f59e0b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Print Styles for BoQ / RAB */
@media print {
  body * {
    visibility: hidden;
  }
  #print-boq-section, #print-boq-section * {
    visibility: visible;
  }
  #print-boq-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
  }
}
