
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


body {
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 0;

}


.container {
  width: 90%;
  margin: auto;
}


header {
  background: rgba(15, 23, 42, 0.35);
  /* 👈 neutral dark (no green) */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-radius: 50px;

}

.header-content {
  font-family: 'Poppins', sans-serif;

  display: flex;

  align-items: center;
}

header h2 {
  color: #38bdf8;
}


nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #cbd5f5;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

nav ul li a:hover {
  background: #38bdf8;
  color: #0f172a;
}


.hero {
  height: 420px;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
    url("https://images.unsplash.com/photo-1501785888041-af3ef285b470") center/cover;
  margin-top: -80px;
  padding-top: 120px;
}

.hero h1 {
  font-size: 3rem;
  color: #38bdf8;
}

.hero p {
  margin-top: 10px;
  color: #94a3b8;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}


.card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  font-size: 1.1rem;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
  background: rgba(255, 255, 255, 0.14);
}


.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}


section {
  padding: 60px 0;
}


#map {
  height: 500px !important;
  width: 100%;
  border-radius: 12px;
}


.footer {
  position: relative;
  z-index: 2;

  background: rgba(2, 6, 23, 0.3);
  /* transparent */
  backdrop-filter: blur(8px);

  padding: 50px 20px;
  margin-top: 60px;
  color: white;
}


.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}


.footer h2 {
  color: #fbfeff;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer p {
  font-size: 0.9rem;
  color: #cbd5f5;
}


.footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin: 5px 0;
}

.footer a:hover {
  color: #38bdf8;
}


.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  text-align: center;
  font-size: 0.85rem;
}

.footer {
  background: rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(6px);
}

#rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  z-index: 0;
  pointer-events: none;
}


.heading1 {
  margin-left: 10px;
  font-weight: bold;
  font-family: 'Poppins';

}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;

}


.risk-page {
  background: #0a0f1a;
  min-height: 100vh;
}


.risk-header {
  position: relative;
  margin-top: 60px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 10, 25, 0.7) 0%, rgba(0, 30, 50, 0.85) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80') center/cover no-repeat;
}

.rain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}


.rain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0px, transparent 14px,
      rgba(0, 200, 255, 0.06) 14px, rgba(0, 200, 255, 0.06) 15px),
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 40px,
      rgba(0, 200, 255, 0.03) 40px, rgba(0, 200, 255, 0.03) 41px);
  animation: rainFall 1.2s linear infinite;
}

@keyframes rainFall {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 40px, 0 0;
  }
}

.risk-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 80, 60, 0.15);
  border: 1px solid rgba(255, 80, 60, 0.4);
  color: #ff6b5b;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 80, 60, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 80, 60, 0);
  }
}

.risk-header-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(0, 200, 255, 0.3);
}

.risk-header-content h1 .accent {
  color: #00c8ff;
}

.risk-header-content p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin: 0;
}


.risk-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 60px - 220px);
  min-height: 560px;
}


.risk-panel {
  background: rgba(8, 14, 26, 0.97);
  border-right: 1px solid rgba(0, 200, 255, 0.08);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.risk-panel::-webkit-scrollbar {
  width: 4px;
}

.risk-panel::-webkit-scrollbar-track {
  background: transparent;
}

.risk-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.2);
  border-radius: 4px;
}

.panel-section {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 200, 255, 0.7);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- SEARCH ---- */
.search-wrapper {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
}

#locationSearch {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 8px;
  color: #d0e8f2;
  font-size: 0.85rem;
  padding: 9px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#locationSearch:focus {
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.08);
}

#locationSearch::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

#searchBtn {
  background: #00c8ff;
  border: none;
  border-radius: 8px;
  color: #000;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

#searchBtn:hover {
  background: #33d4ff;
  transform: scale(1.05);
}


.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 42px;
  background: #0d1a2a;
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  z-index: 500;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.suggestions-dropdown.open {
  display: block;
}

.suggestion-item {
  padding: 9px 14px;
  font-size: 0.82rem;
  color: #c0d8e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(0, 200, 255, 0.1);
  color: #fff;
}

.suggestion-item i {
  color: rgba(0, 200, 255, 0.5);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Location result card */
.location-result {
  margin-top: 14px;
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 10px;
  padding: 14px;
  animation: fadeSlideIn 0.3s ease;
}

.location-result.hidden {
  display: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00c8ff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.result-risk-meter label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.risk-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s;
  width: 0%;
}

.risk-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.result-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.mini-stat strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

/* ---- LIVE FEED ---- */
.live-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  margin-left: auto;
  animation: blink 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.6);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 5px rgba(255, 68, 68, 0);
  }
}

.incident-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.incident-feed::-webkit-scrollbar {
  width: 3px;
}

.incident-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.15);
  border-radius: 3px;
}

.feed-loading {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  text-align: center;
  padding: 20px 0;
}

.feed-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  border-left: 3px solid transparent;
  animation: feedIn 0.4s ease;
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feed-item.severity-critical {
  border-left-color: #ff3333;
}

.feed-item.severity-high {
  border-left-color: #ff8800;
}

.feed-item.severity-moderate {
  border-left-color: #ffcc00;
}

.feed-item.severity-low {
  border-left-color: #00cc66;
}

.feed-item .feed-loc {
  font-weight: 600;
  color: #e0f0ff;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.feed-item .feed-meta {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
}

.feed-sev-badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 700;
  margin-left: auto;
}

.sev-critical {
  background: rgba(255, 51, 51, 0.2);
  color: #ff6666;
}

.sev-high {
  background: rgba(255, 136, 0, 0.2);
  color: #ffaa44;
}

.sev-moderate {
  background: rgba(255, 204, 0, 0.2);
  color: #ffdd44;
}

.sev-low {
  background: rgba(0, 204, 102, 0.2);
  color: #44dd88;
}


.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-list li {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.legend-dot.critical {
  background: #ff3333;
  color: #ff3333;
}

.legend-dot.high {
  background: #ff8800;
  color: #ff8800;
}

.legend-dot.moderate {
  background: #ffcc00;
  color: #ffcc00;
}

.legend-dot.low {
  background: #00cc66;
  color: #00cc66;
}

.legend-dot.safe {
  background: #4488aa;
  color: #4488aa;
}

/* ---- STATS ---- */
.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 18px;
}

.stat-card {
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #00c8ff;
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}


.map-container {
  position: relative;
  flex: 1;
}

#map {
  width: 100%;
  height: 100%;
  background: #0a1520;
}


.leaflet-tile {
  filter: brightness(0.7) saturate(0.5) hue-rotate(170deg);
}


.leaflet-popup-content-wrapper {
  background: rgba(8, 18, 32, 0.96) !important;
  border: 1px solid rgba(0, 200, 255, 0.25) !important;
  border-radius: 10px !important;
  color: #d0e8f2 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

.leaflet-popup-tip {
  background: rgba(0, 200, 255, 0.2) !important;
}

.leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.4) !important;
}

.map-popup h4 {
  color: #00c8ff;
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.map-popup p {
  margin: 3px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.map-popup .popup-sev {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}


.map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-ctrl-btn {
  width: 38px;
  height: 38px;
  background: rgba(8, 18, 32, 0.9);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 8px;
  color: rgba(0, 200, 255, 0.8);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}

.map-ctrl-btn:hover {
  background: rgba(0, 200, 255, 0.15);
  color: #00c8ff;
  border-color: rgba(0, 200, 255, 0.5);
}

.map-ctrl-btn.active {
  background: rgba(0, 200, 255, 0.2);
  color: #00c8ff;
  border-color: #00c8ff;
}

.map-timestamp {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 500;
  background: rgba(8, 18, 32, 0.85);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: rgba(0, 200, 255, 0.6);
  backdrop-filter: blur(6px);
}


.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.5) !important;
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 0.6rem !important;
}

.leaflet-control-attribution a {
  color: rgba(0, 200, 255, 0.5) !important;
}


.leaflet-control-zoom a {
  background: rgba(8, 18, 32, 0.9) !important;
  color: #00c8ff !important;
  border-color: rgba(0, 200, 255, 0.2) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(0, 200, 255, 0.15) !important;
}


* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 255, 0.2) transparent;
}

.risk-header {
  position: relative;
}

.risk-header {
  margin-top: 0;
}

.ai-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.70), rgba(8, 15, 28, 0.82));
  color: #e5f2ff;
  font-family: 'Poppins', sans-serif;
}

.ai-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  gap: 18px;
}

.ai-hero {
  background: rgba(10, 18, 35, 0.42);
  border: 1px solid rgba(120, 180, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.ai-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #8fdcff;
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.ai-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
}

.ai-subtitle {
  margin-top: 10px;
  max-width: 700px;
  color: rgba(224, 238, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.ai-panel {
  background: rgba(10, 18, 35, 0.34);
  border: 1px solid rgba(120, 180, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.chat-window {
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg.user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(59, 130, 246, 0.92));
  color: #07111f;
  border-bottom-right-radius: 6px;
  font-weight: 600;
}

.msg.bot {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf4ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 6px;
}

.msg.typing {
  opacity: 0.8;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.quick-btn {
  border: 1px solid rgba(120, 180, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf4ff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s ease;
  font-family: 'Poppins', sans-serif;
}

.quick-btn:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.14);
}

.chat-input-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.18);
  outline: none;
  background: rgba(5, 10, 20, 0.55);
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.chat-input-row input::placeholder {
  color: rgba(234, 244, 255, 0.55);
}

.chat-input-row button {
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: #38bdf8;
  color: #07111f;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transition: 0.25s ease;
}

.chat-input-row button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .msg {
    max-width: 92%;
  }

  .chat-input-row {
    flex-direction: column;
  }

  .chat-input-row button {
    width: 100%;
  }
}



.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.70), rgba(8, 15, 28, 0.82));
  color: #e5f2ff;
  font-family: 'Poppins', sans-serif;
}

.home-page a {
  text-decoration: none;
}

.home-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 18px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.home-hero-content {
  background: rgba(10, 18, 35, 0.42);
  border: 1px solid rgba(120, 180, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.home-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #8fdcff;
  font-size: 13px;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.03;
  font-weight: 800;
  max-width: 10ch;
}

.home-subtitle {
  margin-top: 12px;
  max-width: 620px;
  color: rgba(224, 238, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.home-btn.primary {
  background: #38bdf8;
  color: #07111f;
}

.home-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #eaf4ff;
  border-color: rgba(120, 180, 255, 0.18);
}

.home-btn.ghost {
  background: transparent;
  color: #eaf4ff;
  border-color: rgba(120, 180, 255, 0.18);
}

.home-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 180, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 22px;
  color: #8fdcff;
  margin-bottom: 4px;
}

.stat-card span {
  color: rgba(224, 238, 255, 0.72);
  font-size: 13px;
}

.home-hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-image-frame {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(120, 180, 255, 0.14);
  background: rgba(10, 18, 35, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.landslide-scene {
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.landslide-scene svg {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
}

.hero-float-card {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(10, 18, 35, 0.72);
  border: 1px solid rgba(120, 180, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 14px 16px;
  max-width: 250px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.hero-float-card strong {
  display: block;
  color: #eaf4ff;
  font-size: 14px;
  margin-bottom: 4px;
}

.hero-float-card p {
  margin: 0;
  color: rgba(224, 238, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.hero-float-card .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #38bdf8;
  margin-top: 4px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.hero-float-card.card-top {
  top: 18px;
  left: 18px;
}

.hero-float-card.card-bottom {
  right: 18px;
  bottom: 18px;
}

.home-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: rgba(10, 18, 35, 0.34);
  border: 1px solid rgba(120, 180, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 22px;
  color: #e5f2ff;
  transition: 0.25s ease;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: rgba(224, 238, 255, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: rgba(10, 18, 35, 0.46);
}

@media (max-width: 980px) {
  .home-hero,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    max-width: none;
  }

  .hero-image-frame,
  .landslide-scene,
  .landslide-scene svg {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .home-hero-content {
    padding: 18px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .hero-float-card {
    max-width: 210px;
  }

  .hero-float-card.card-top {
    top: 12px;
    left: 12px;
  }

  .hero-float-card.card-bottom {
    right: 12px;
    bottom: 12px;
  }
}

.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.70), rgba(8, 15, 28, 0.82));
  color: #e5f2ff;
}



/* =============================================
   LANDSLIDE E-PORTAL — REPORT PAGE STYLES
   ============================================= */

:root {
  --bg-deep:       #0f1924;
  --bg-card:       rgba(18, 30, 46, 0.88);
  --bg-section:    rgba(255, 255, 255, 0.04);
  --bg-input:      rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-focus:  #3ecfda;
  --accent:        #3ecfda;
  --accent-glow:   rgba(62, 207, 218, 0.18);
  --accent-dim:    rgba(62, 207, 218, 0.08);
  --text-primary:  #e8f1f8;
  --text-secondary:#7a9ab5;
  --text-muted:    #4a6580;
  --danger:        #ff5a5a;
  --warning:       #f0a500;
  --success:       #3ecfda;
  --sev-low:       #43c97a;
  --sev-medium:    #f0a500;
  --sev-high:      #ff7540;
  --sev-critical:  #ff4d4d;
  --radius:        14px;
  --radius-sm:     8px;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body.report-page {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── RAIN CANVAS ─── */
#rainCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ─── MAIN LAYOUT ─── */
.report-main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ─── PAGE HEADER ─── */
.report-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeUp 0.7s ease both;
}

.badge-tag {
  display: inline-block;
  background: rgba(62, 207, 218, 0.15);
  color: var(--accent);
  border: 1px solid rgba(62, 207, 218, 0.3);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.report-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.report-title .accent {
  color: var(--accent);
  position: relative;
}

.report-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── MAIN CARD ─── */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 48px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(62,207,218,0.04);
  animation: fadeUp 0.8s 0.1s ease both;
}

/* ─── FORM SECTIONS ─── */
.form-section {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  transition: border-color var(--transition);
}

.form-section:hover {
  border-color: rgba(62, 207, 218, 0.12);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-label i {
  font-size: 1rem;
  opacity: 0.85;
}

/* ─── FORM ROWS ─── */
.form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row.two-col {
  flex-wrap: wrap;
}

.form-row.two-col .form-group {
  flex: 1 1 200px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  flex: 1 1 100%;
}

/* ─── LABELS ─── */
label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.required {
  color: var(--accent);
  margin-left: 2px;
}

/* ─── INPUTS / SELECTS / TEXTAREA ─── */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 15px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: rgba(62, 207, 218, 0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233ecfda' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

select option {
  background: #162030;
  color: var(--text-primary);
}

textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) hue-rotate(160deg);
  cursor: pointer;
}

/* ─── SEVERITY SELECTOR ─── */
.severity-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sev-option {
  flex: 1 1 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  background: var(--bg-input);
}

.sev-option input[type="radio"] {
  display: none;
}

.sev-option span {
  pointer-events: none;
}

.sev-option.low:has(input:checked)       { background: rgba(67,201,122,0.15); border-color: var(--sev-low);      color: var(--sev-low); }
.sev-option.medium:has(input:checked)    { background: rgba(240,165,0,0.15);  border-color: var(--sev-medium);   color: var(--sev-medium); }
.sev-option.high:has(input:checked)      { background: rgba(255,117,64,0.15); border-color: var(--sev-high);     color: var(--sev-high); }
.sev-option.critical:has(input:checked)  { background: rgba(255,77,77,0.15);  border-color: var(--sev-critical); color: var(--sev-critical); }

.sev-option.low:hover       { border-color: var(--sev-low); color: var(--sev-low); }
.sev-option.medium:hover    { border-color: var(--sev-medium); color: var(--sev-medium); }
.sev-option.high:hover      { border-color: var(--sev-high); color: var(--sev-high); }
.sev-option.critical:hover  { border-color: var(--sev-critical); color: var(--sev-critical); }

/* ─── DETECT LOCATION BUTTON ─── */
.detect-location-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(62, 207, 218, 0.25);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.detect-location-btn:hover {
  background: rgba(62, 207, 218, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(62,207,218,0.15);
}

/* ─── UPLOAD ZONE ─── */
.upload-zone {
  border: 2px dashed rgba(62, 207, 218, 0.2);
  border-radius: var(--radius);
  background: var(--bg-input);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  min-height: 140px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 10px;
}

.upload-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.upload-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.upload-content small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ─── PREVIEW GRID ─── */
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.preview-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.preview-item .remove-img:hover {
  background: var(--danger);
}

/* ─── SUBMIT AREA ─── */
.form-submit-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
}

.privacy-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.privacy-note i {
  color: var(--accent);
  opacity: 0.7;
}

/* ─── SUBMIT BUTTON ─── */
.submit-btn {
  position: relative;
  background: linear-gradient(135deg, #2ab8c5 0%, #1a8fa0 100%);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 16px 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(62, 207, 218, 0.25);
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(62, 207, 218, 0.38);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn i {
  font-size: 0.95rem;
}

/* Loader inside button */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading .btn-text,
.submit-btn.loading i {
  display: none;
}

.submit-btn.loading .btn-loader {
  display: block;
}

/* ─── SUCCESS OVERLAY ─── */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 28, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s ease;
}

.success-overlay.visible {
  display: flex;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid rgba(62, 207, 218, 0.2);
  border-radius: 22px;
  padding: 52px 44px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(62,207,218,0.06);
}

.success-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  animation: pulse 2s ease infinite;
}

.success-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.report-id-box {
  background: var(--accent-dim);
  border: 1px solid rgba(62, 207, 218, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.report-id-box strong {
  color: var(--accent);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.reset-btn {
  background: transparent;
  border: 1px solid rgba(62, 207, 218, 0.3);
  color: var(--accent);
  border-radius: 100px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.reset-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(62,207,218,0.4)); }
  50%       { filter: drop-shadow(0 0 18px rgba(62,207,218,0.7)); }
}

/* ─── VALIDATION HIGHLIGHT ─── */
input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15) !important;
}

.error-msg {
  color: var(--danger);
  font-size: 0.76rem;
  margin-top: 4px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(62,207,218,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(62,207,218,0.4); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .report-card { padding: 28px 20px; }
  .form-section { padding: 20px; }
  .form-row.two-col { flex-direction: column; }
  .severity-selector { gap: 7px; }
  .sev-option { padding: 8px 6px; font-size: 0.76rem; }
  .submit-btn { padding: 14px 36px; font-size: 0.92rem; }
}