/* Custom styles for GeoTag Photo Capture */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Camera Shutter Flash Animation */
@keyframes shutterFlash {
  0% { opacity: 0; }
  50% { opacity: 0.9; }
  100% { opacity: 0; }
}

.camera-flash {
  position: absolute;
  inset: 0;
  background-color: white;
  pointer-events: none;
  z-index: 50;
  animation: shutterFlash 0.35s ease-out forwards;
}

/* Pulse animation for GPS locked indicator */
@keyframes pulseGps {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.pulse-gps {
  animation: pulseGps 2s infinite ease-in-out;
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  #recordsModal {
    padding: 0.5rem;
  }

  #recordsModal > div {
    max-height: calc(100dvh - 1rem);
  }

  #toastContainer {
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  #toastContainer > div {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Print Stylesheet for Official Survey Slip */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  header, 
  #stepProgressLine, 
  #stepIndicator1, 
  #stepIndicator2, 
  #stepIndicator3,
  #recordsModal,
  #toastContainer,
  button,
  .no-print {
    display: none !important;
  }

  #step3Container {
    display: block !important;
  }

  #previewImage {
    max-height: 450px !important;
    width: 100% !important;
    object-fit: contain !important;
    border: 2px solid #000 !important;
  }

  .bg-slate-900, 
  .bg-slate-950,
  .bg-slate-900\/60,
  .bg-slate-900\/70,
  .bg-slate-900\/80 {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }

  .text-white, .text-slate-200, .text-slate-300 {
    color: #000 !important;
  }

  .text-slate-400, .text-slate-500 {
    color: #475569 !important;
  }

  .text-emerald-400 {
    color: #047857 !important;
  }
}

