/* ═══════════════════════════════════════════════════════════════
   TRUEWATCH.CO.IN - COMPLETE MERGED STYLES
   Your Beautiful Design + Client's Full Functionality
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   FONTS IMPORT
   ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ───────────────────────────────────────────────────────────────
   RESET & VARIABLES
   ─────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
  /* Your Color Palette */
  --primary-bg: #0a1428;
  --secondary-bg: #1a2332;
  --card-bg: #1e2936;
  --border-color: #2d3a4f;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --green-primary: #4ade80;
  --green-dark: #22c55e;
  --blue-primary: #3b82f6;
  --red-primary: #ef4444;
  --orange-primary: #f59e0b;
  --yellow-primary: #fbbf24;
  
  /* Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

/* ───────────────────────────────────────────────────────────────
   BODY & BASE
   ─────────────────────────────────────────────────────────────── */
body {
  background: linear-gradient(135deg, #0a1428 0%, #1a2845 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────────
   HEADER / NAVBAR (Your Design + Client's Classes)
   ─────────────────────────────────────────────────────────────── */
.navbar,
.site-header {
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Client's Header Inner */
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Your Original Navbar Style */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Section */
.logo-section,
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Radar Icon / Brand Eye */
.radar-icon,
.brand-eye {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #3b82f6 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.brand-eye {
  font-size: 40px;
  background: none;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
  animation: radar-pulse 2s infinite;
}

.radar-icon::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: radar-pulse 2s infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Brand Text */
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-family: 'Rajdhani', sans-serif;
}

.brand-name .co-in,
.brand-tld {
  color: var(--text-secondary);
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  margin-top: -2px;
}

/* Header Actions (Client's Feature) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-name {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0 12px;
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Space Mono', monospace;
}

.badge-privacy {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green-primary);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-no-rec {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-primary);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ───────────────────────────────────────────────────────────────
   CONTAINER & LAYOUT
   ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Dashboard Layout */
.camera-container,
.dashboard-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

/* ───────────────────────────────────────────────────────────────
   BUTTONS (Your Styles + Client's Classes)
   ─────────────────────────────────────────────────────────────── */
.btn {
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover,
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-primary);
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--red-primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ───────────────────────────────────────────────────────────────
   CARDS & MODALS
   ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active,
.modal-overlay:not([hidden]) {
  display: flex;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-color);
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-sm {
  max-width: 400px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 16px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ───────────────────────────────────────────────────────────────
   FORMS
   ─────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
  font-size: 18px;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s;
}

.form-control::placeholder {
  color: var(--text-secondary);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  padding-left: 16px;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.country-code {
  width: 100px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
}

.phone-input .form-control {
  flex: 1;
  padding-left: 16px;
}

.form-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock-icon {
  font-size: 14px;
}

/* ───────────────────────────────────────────────────────────────
   HOME PAGE / HERO
   ─────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: 'Rajdhani', sans-serif;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ───────────────────────────────────────────────────────────────
   SUCCESS MESSAGE
   ─────────────────────────────────────────────────────────────── */
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 40px;
}

.success-message {
  text-align: center;
}

.success-message h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.success-message p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ───────────────────────────────────────────────────────────────
   DEVICE CHECK
   ─────────────────────────────────────────────────────────────── */
.check-list {
  margin: 40px 0;
}

.check-item {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.check-item.success {
  border-color: var(--green-primary);
  background: rgba(74, 222, 128, 0.05);
}

.check-icon {
  width: 40px;
  height: 40px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.check-item span {
  font-size: 18px;
  font-weight: 500;
}

/* ───────────────────────────────────────────────────────────────
   TERMS & CONDITIONS
   ─────────────────────────────────────────────────────────────── */
.terms-content {
  text-align: center;
}

.terms-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.terms-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

.checkbox-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.checkbox-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-wrapper input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--green-primary);
  cursor: pointer;
}

.checkbox-wrapper label {
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

/* ───────────────────────────────────────────────────────────────
   VIDEO PANEL (Your Design + Client's Features)
   ─────────────────────────────────────────────────────────────── */
.live-view-panel,
.video-section {
  position: relative;
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
}

/* Status Badges (Your Design + Client's States) */
.status-badge,
.live-badge,
.idle-badge,
.loading-badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  position: relative;
}

/* Your original absolute positioning */
.video-section .status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.status-badge.idle,
.idle-badge {
  background: rgba(107, 114, 128, 0.9);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-badge.live,
.live-badge {
  background: rgba(239, 68, 68, 0.9);
  color: var(--red-primary);
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: pulse-glow 2s infinite;
}

.loading-badge {
  background: rgba(59, 130, 246, 0.9);
  color: var(--blue-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 2px solid var(--border-color);
}

/* Video Elements */
#video,
#videoFeed,
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Canvas Overlays */
#canvas,
#overlayCanvas,
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

/* Video Corner Decorations (Your Feature) */
.video-corner-tl,
.video-corner-tr,
.video-corner-bl,
.video-corner-br {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue-primary);
  opacity: 0.5;
  z-index: 2;
}

.video-corner-tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.video-corner-tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.video-corner-bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.video-corner-br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* Draw Mode Overlay (Client's Feature) */
.draw-mode-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(251, 191, 36, 0.95);
  color: #000;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* ───────────────────────────────────────────────────────────────
   CONTROLS
   ─────────────────────────────────────────────────────────────── */
.controls,
.control-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.model-status {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Space Mono', monospace;
}

/* ───────────────────────────────────────────────────────────────
   SIDEBAR / INFO PANEL
   ─────────────────────────────────────────────────────────────── */
.sidebar,
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card Headers */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
}

.info-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.card-badge {
  background: var(--blue-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.card-body {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Zone Lists */
.zone-list,
.suggestion-list,
.monitoring-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
}

.zone-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.zone-item::before {
  content: '✓';
  color: var(--green-primary);
  font-weight: bold;
  font-size: 18px;
}

.empty-msg {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* ───────────────────────────────────────────────────────────────
   ALERT CARD / BOX
   ─────────────────────────────────────────────────────────────── */
.alert-box,
.card-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.card-alert.calm {
  border-color: var(--green-primary);
  background: rgba(74, 222, 128, 0.05);
}

.alert-box.active,
.card-alert.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--red-primary);
  animation: alertPulse 1s infinite;
}

@keyframes alertPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.alert-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.alert-box p,
.alert-msg {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.alert-box.active p {
  color: var(--red-primary);
  font-weight: 600;
}

.alert-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* ───────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────── */
.dashboard-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.disclaimer {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: italic;
}

/* ───────────────────────────────────────────────────────────────
   CAMERA PERMISSION
   ─────────────────────────────────────────────────────────────── */
.permission-dialog {
  text-align: center;
  padding: 60px 20px;
}

.browser-permission {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  margin: 40px auto;
  max-width: 500px;
  border: 2px solid var(--border-color);
}

.permission-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.permission-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.permission-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.permission-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.permission-btn.allow {
  background: var(--blue-primary);
  color: white;
}

.permission-btn.block {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ───────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 968px) {
  .camera-container,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .controls,
  .control-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .navbar,
  .site-header {
    padding: 12px 20px;
  }
  
  .brand-name {
    font-size: 20px;
  }
  
  .controls,
  .control-row {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .modal {
    padding: 24px;
  }
  
  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ───────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ─────────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.hidden,
[hidden] {
  display: none !important;
}

/* ───────────────────────────────────────────────────────────────
   ANIMATIONS & EFFECTS
   ─────────────────────────────────────────────────────────────── */

/* Smooth transitions for all interactive elements */
button,
.btn,
.zone-item,
.info-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for cards */
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Selection styling */
::selection {
  background: var(--blue-primary);
  color: white;
}

/* Focus visible for accessibility */
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}
.privacy-strip {
    text-align: center;
}
.control-row {
  margin-bottom: 20px;
}

.container {
  padding-bottom: 40px;
}
/* ═══════════════════════════════════════════════════════════════
   END OF STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* Make danger alert more obvious */
.card-alert.danger {
  animation: pulse-danger 1s infinite !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8) !important;
}

@keyframes pulse-danger {
  0%, 100% { 
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1);
  }
  50% { 
    background: rgba(239, 68, 68, 0.4);
    transform: scale(1.02);
  }
}

/* Danger banner at top */
.alert-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  25% { transform: translateX(-50%) translateY(-5px); }
  75% { transform: translateX(-50%) translateY(5px); }
}
