/* Custom styles for Titiwangsa Youth Network Web Portal */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --twn-green-900: #032b13;
  --twn-green-800: #064e24;
  --twn-green-700: #086930;
  --twn-green-600: #0d8a41;
  --twn-green-100: #e7f5ec;
  --twn-green-50: #f2f9f5;
  --twn-gold-500: #f59e0b;
  --twn-gold-600: #d97706;
  --twn-gold-400: #fbbf24;
  --twn-gold-100: #fef3c7;
}

body {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

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

/* Compass Specific Styling */
.compass-outer-dial {
  box-shadow: 0 10px 25px -5px rgba(6, 78, 36, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.15);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f1f5f9 70%, #e2e8f0 100%);
}

.compass-inner-face {
  background: radial-gradient(circle, #ffffff 40%, #f8fafc 85%, #ecfdf5 100%);
  box-shadow: inset 0 4px 12px rgba(6, 78, 36, 0.08);
}

.compass-active-glow {
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.6), inset 0 0 20px rgba(16, 185, 129, 0.3);
  border-color: #f59e0b !important;
}

/* Leaflet Custom Marker & Popup Styles */
.custom-leaflet-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
  border: 2px solid white;
}
.custom-leaflet-marker:hover {
  transform: scale(1.15);
}

.leaflet-popup-content-wrapper {
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.5;
}
.leaflet-popup-tip {
  background: white;
}

/* Pulse Animation for Live alerts */
@keyframes emergencyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}
.animate-emergency-pulse {
  animation: emergencyPulse 1.8s infinite ease-in-out;
}

/* Glassmorphism Card Effects */
.twn-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Print Stylesheet for Complaint Slip */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-slip, #printable-slip * {
    visibility: visible;
  }
  #printable-slip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 24px;
    box-shadow: none !important;
    border: 1px solid #94a3b8 !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Weather Radar & Marine Styling */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-sweep-beam {
  animation: radarSweep 4s linear infinite;
  transform-origin: center center;
}

@keyframes waveFlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.animate-wave-flow {
  animation: waveFlow 2s ease-in-out infinite;
}

.tmd-forecast-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tmd-forecast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(6, 78, 36, 0.15);
}

.tide-level-indicator {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.8) 0%, rgba(2, 132, 199, 1) 100%);
}

