/* Custom Styling for My3wayFriend App */
:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --emergency: #ef4444;
  --emergency-glow: rgba(239, 68, 68, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Glassmorphism & Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.glass-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* SOS Pulsating Glow Effect */
.sos-pulse {
  animation: pulse-emergency 1.8s infinite;
}

@keyframes pulse-emergency {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Guardian Circle Badge */
.guardian-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interactive Map Height */
#map {
  height: 420px;
  width: 100%;
  border-radius: 0.75rem;
  z-index: 10;
}

/* Webcam feed */
.video-preview-box {
  position: relative;
  background: #090d16;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scanner-overlay-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  animation: scan-move 2.5s infinite linear;
}

@keyframes scan-move {
  0% { top: 0%; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 98%; opacity: 0; }
}

/* Badge colors */
.badge-active { background: #dbeafe; color: #1e40af; }
.badge-sos { background: #fee2e2; color: #b91c1c; font-weight: bold; }
.badge-safe { background: #d1fae5; color: #065f46; }
.badge-archived { background: #f1f5f9; color: #475569; }

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
