/* Reset dan global */

/* Regular 400 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Medium 500 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* Semibold 600 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Bold 700 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: sans-serif;
}

/* 🌙 DARK MODE STYLING */
.dark-mode {
  background-color: #001919;
  color: #e0e0e0;
}

/* Popup Box */
.dark-mode .popup-box {
  background: #002626;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}
.dark-mode .popup-box h3 {
  color: #f0f0f0;
}
.dark-mode .popup-box .btn-login {
  background: #e53935;
}

/* Notifikasi */
.dark-mode .popup-notif {
  background: #153f2a;
  border: 1px solid #1e6b46;
  color: #c9f6d6;
}

/* Modal Form */
.dark-mode .modal-form-container {
  background: #002626;
  color: #f0f0f0;
}
.dark-mode .form-label,
.dark-mode .modal-form-container form label {
  color: #e0e0e0;
}
.dark-mode .form-input-time,
.dark-mode .modal-form-container input[type="text"],
.dark-mode .modal-form-container input[type="file"],
.dark-mode .modal-form-container textarea {
  background: #001919;
  color: #fff;
  border: 1px solid #444;
}

/* Greeting text */
.dark-mode .greeting-text {
  color: #ddd;
}

/* Upload */
.dark-mode .upload-label {
  border: 1px dashed #666;
  background: #001919;
}
.dark-mode .upload-label:hover {
  background: #002626;
}
.dark-mode .upload-text small {
  color: #aaa;
}

/* Disclaimer */
.dark-mode .disclaimer-box {
  background: #1a2525;
  border: 1px solid #555;
}
.dark-mode .disclaimer-title {
  color: #ff9800;
}

/* Submit Button */
.dark-mode .btn-submit-laporan {
  background: #0d7377;
}
.dark-mode .btn-submit-laporan:hover {
  background: #14a098;
}

/* Maps Section */
.dark-mode .map-header h2 {
  color: #fff;
}
.dark-mode .map-header h2 span {
  color: #ff5252;
}
.dark-mode .hr-with-content hr {
  background-color: #444;
}
.dark-mode .tab {
  color: #ddd;
}
.dark-mode .tab.active {
  background: #0d7377;
  color: #fff;
}
.dark-mode .date-picker input {
  background: #001919;
  color: #fff;
  border: 1px solid #444;
}
.dark-mode .map-instruction {
  color: #bbb;
}
.dark-mode .map-container {
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}


/* Login button */
.login-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: black;
  transition: color 0.3s, background-color 0.3s;
  padding: 5px 10px;
  border-radius: 5px;
}

.login-btn:hover {
  color: red;
  background-color: rgba(0,0,0,0.1);

}


/*INI BAGIAN HERO YA*/

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  background: 
    linear-gradient(to bottom, rgba(0,0,0,0) 80%, rgba(255,255,255,1) 100%), 
    url('../assets/bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}


/* Shadow / wave effect di bawah hero */
/* Hero wave */
.hero-wave {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin-top: -2px; /* hilangkan celah */
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========HERO LOGIN & GREATING=========== */

.hero .alert-login {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  margin-bottom: 50px;
  display: inline-block;
}
.hero .user-greeting {
  font-size: 20px;
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 50px;
}
.hero .user-pic {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.hero-buttons {
  margin-top: 20px;
}

/* Isi hero */
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.judul {
  font-size: 48px;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

.judul:hover {
  color: #a00;              /* jadi merah */
  transform: scale(1.05);   /* zoom sedikit */
}




.hero-content p {
  font-size: 24px;
  margin-bottom: 20px;
  width: 60%;
  align-content: center;
  align-items: center;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  line-height: 35px;
   letter-spacing: 1px;
}

/* Tombol di hero */
.hero-buttons {
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:20px;
  flex-wrap:wrap;
}

.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 22px;
  font-size:16px;
  font-weight: 500;
  color:#fff;
  text-decoration:none;
  border:none;
  border-radius:20px;
  cursor:pointer;
  transition: all 0.3s ease;
  box-shadow:0 3px 6px rgba(0,0,0,0.2);
  background:#AA2525; /* default merah, bisa di override */
}

/* Input Berita: merah */
.btn-input {
  background:#AA2525;
}

.btn-input:hover {
  background:#a00;
  transform: translateY(-2px);
}

/* Peta: biru */
.btn-peta {
  background:#1B4D91;
}

.btn-peta:hover {
  background:#0062cc;
  transform: translateY(-2px);
}

/* Icon animasi */
.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}




/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* ======================Popup Box====================== */
.popup-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
}
.popup-box i {
  font-size: 32px;
  color: #f39c12;
  margin-bottom: 10px;
}
.popup-box h3 {
  margin-bottom: 10px;
}
.popup-box .btn-login {
  margin-top: 15px;
  padding: 10px 15px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Notifikasi login berhasil */
.popup-notif {
  background: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  width: fit-content;
  margin: 20px auto;
  font-size: 14px;
}
.popup-notif i {
  margin-right: 5px;
}
.hidden {
  display: none;
}


/* ✅ Container untuk tombol login Google */
#googleBtnContainer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}


/* ✅ INI STYLING MODAL FORM */

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
}

/* ===== MODAL FORM CONTAINER ===== */
.modal-form-container {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 800px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.form-label {
  font-weight: 500;
  margin-top: 1rem;
  display: block;
  color: #333;
}

.form-input-time {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #fff;
  color: #333;
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== GREETING ===== */
.greeting-user-modal {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.greeting-pic {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 10px;
}

.greeting-text {
  font-size: 16px;
  color: #444;
}

/* ===== FORM STYLING ===== */
.modal-form-container form label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
  color: #333;
}

.modal-form-container input[type="text"],
.modal-form-container input[type="file"],
.modal-form-container textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.modal-form-container textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== UPLOAD WRAPPER ===== */
.upload-wrapper {
  display: flex;
  gap: 20px;
}

.upload-box {
  flex: 1;
}

.upload-label {
  display: flex;              /* aktifin flex */
  flex-direction: row;        /* biar horizontal */
  align-items: center;        /* sejajarin vertikal */
  gap: 12px;                  /* jarak antara gambar & teks */
  cursor: pointer;
  border: 1px dashed #aaa;
  padding: 12px;
  border-radius: 8px;
  background: #f9f9f9;
  transition: 0.2s;
}

.upload-label:hover {
  background: #f0f0f0;
}

.upload-label img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.upload-text {
   font-family: 'SF Pro Rounded', sans-serif;
  display: flex;
  flex-direction: column;   /* biar judul di atas, small di bawah */
}

.upload-text p {
  margin-left: 38px;
  margin-top: -33px;
  font-weight: 700;
}

.upload-text small {
  color: #666;
  font-size: 12px;
  margin-top: 2px;
  margin-left: 38px;
}







/* ===== DISCLAIMER BOX ===== */
.disclaimer-box {
  background: #fef9f0;
  border: 1px solid #ffd391;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.disclaimer-icon {
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 8px;
}

.disclaimer-title {
  font-weight: bold;
  color: #b35400;
}

.disclaimer-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.5;
}
.disclaimer-check input[type="checkbox"] {
  margin-top: 4px;
}



/* ===== SUBMIT BUTTON ===== */
.btn-submit-laporan {
  margin-top: 20px;
  width: 100%;
  background: #1B4D91;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit-laporan:hover {
  background: #005fcc;
}










/* === BAGIAN MAPS Styling === */

.map-section {
  padding: 40px 20px;
  font-family: 'SF Pro Rounded', sans-serif;
}

.map-header h2 {
  font-family: 'SF Pro Rounded', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #000;
}

.map-header h2 span {
  font-weight: 400;
  color: #e53935; /* merah */
}

.hr-with-content {
  margin: 30px 0;
}

.hr-with-content hr {
  width: 100%;
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 0;
}

/* ✅ Ini penting: bagi kiri dan kanan */
.map-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
}

/* Tombol filter */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
  background: transparent; /* atau background-color: transparent; */
}

.tab.active {
  background-color: #014D4C;
  color: #fff;
}

.filter-icon i {
  font-size: 14px;
}

/* Tanggal di kanan */
.date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.date-picker input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


/* === MAPS === */

.date-picker label {
  font-size: 14px;
}

.date-picker input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.map-instruction {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.map-instruction i {
  margin-right: 6px;
}

/* Buat iframe storymap jadi responsive */
.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio, bisa ganti sesuai kebutuhan */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.map-container iframe {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* === Modal Styling === */

/* ========== RESPONSIVE ADDITIONS ========== */
/* Breakpoints: desktop (>=1200), laptop (~992-1199), tablet (~768-991), mobile (<768) */

/* ---------- Global tweaks for better scaling ---------- */
html { font-size: 16px; }
body { font-family: 'SF Pro Rounded', sans-serif; -webkit-font-smoothing:antialiased; }

/* Make buttons easier to tap on mobile */
.btn, .tab, .btn-submit-laporan, .login-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0.08);
}

/* Improve focus outlines for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(21,101,192,0.15);
  outline-offset: 2px;
}

/* ---------- Hero scaling ---------- */
@media (min-width: 1200px) {
  .hero { height: 90vh; }
  .hero-content h1 { font-size: 56px; }
  .hero-content p { font-size: 24px; width: 60%; line-height: 38px; }

}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero { height: 75vh; }
  .hero-content h1 { font-size: 48px; }
  .hero-content p { font-size: 20px; width: 70%; line-height: 34px; }
  .map-container {
    height: 80vh; /* tetap gede di desktop */
    padding-top: 0; /* matiin aspect ratio */
  }
  .map-container iframe {
    position: static;
    height: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero { height: 60vh; padding: 30px; }
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 18px; width: 80%; line-height: 30px; }
  .hero .user-greeting { margin-bottom: 30px; gap: 8px; }
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    padding: 36px 18px 48px;
    background-position: center top;
  }
  .hero-content h1 { font-size: 26px; margin-top: 6px; }
  .judul { font-size: 26px; }
  .hero-content p {
    font-size: 15px;
    width: 100%;
    line-height: 22px;
    margin-bottom: 12px;
  }

  /* Hero buttons stack and full-width on mobile */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 14px;
  }
  .btn { width: 100%; justify-content: center; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
}






/* ---------- Modal responsiveness ---------- */
@media (max-width: 991px) {
  .modal-form-container {
    max-width: 720px;
    padding: 24px;
    margin: 20px;
  }
}

@media (max-width: 767px) {
  .modal-form-container {
    width: 100%;
    max-width: 420px;
    padding: 18px;
    border-radius: 12px;
  }
  .modal-form-container form label { font-size: 14px; }
  .modal-form-container input[type="text"],
  .modal-form-container textarea,
  .modal-form-container input[type="file"] {
    font-size: 14px;
    padding: 10px;
  }

  /* Upload wrapper -> column */
  .upload-wrapper {
    flex-direction: column;
  }
  .upload-box { width: 100%; }
  .upload-label { padding: 10px; gap: 10px; }
  .upload-text p, .upload-text small { margin-left: 12px; margin-top: 0; }
}

/* ---------- Map / iframe sizing ---------- */
/* Desktop: comfortable big map, Tablet: medium, Mobile: smaller height */
@media (min-width: 1200px) {
  .map-container { height: 75vh; }
  .map-header h2 { font-size: 36px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .map-container { height: 68vh; }
  .map-header h2 { font-size: 32px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .map-container { height: 60vh; }
  .map-header h2 { font-size: 28px; }
}

@media (max-width: 767px) {
  .map-container { height: 50vh; border-radius: 12px; }
  .map-header h2 { font-size: 20px; }
  .map-header h2 span { display: block; font-size: 14px; margin-top: 6px; font-weight: 700;}
  .map-instruction { font-size: 13px; }
  .map-section { padding: 18px 12px; margin-bottom: 30px; }
}

/* Make iframe responsive when orientation changes on mobile */
@media (orientation: landscape) and (max-width: 900px) {
  .map-container { height: 68vh; }
}

/* ---------- Tabs & filters responsiveness ---------- */
/* Allow horizontal scroll on small screens so many tabs don't wrap into messy lines */
.tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: visible;
}

@media (max-width: 640px) {
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .tabs::-webkit-scrollbar { height: 6px; }
  .tabs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }
  .tab { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .map-filters { align-items: center; gap: 10px; }
  .date-picker { width: 100%; justify-content: flex-end; }
}

/* On tiny screens, move date-picker below tabs */
@media (max-width: 480px) {
  .map-filters { flex-direction: column; align-items: stretch; gap: 8px; }
  .date-picker { justify-content: flex-start; margin-top: 6px; }
}

/* ---------- Map header spacing ---------- */
.map-header { margin-bottom: 10px; }
.hr-with-content { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Form layout improvements ---------- */
.upload-label img { width: 36px; height: 36px; }
.upload-text p { margin-left: 46px; margin-top: -36px; }

/* For mobile where left margin may shrink */
@media (max-width: 480px) {
  .upload-text p { margin-left: 38px;
        margin-top: -35px; font-size: 12.75px; }
  .upload-text small { margin-left: 38px; font-size: 11px; }
}

/* ---------- Misc small polish ---------- */
/* Make popup-notif full width fit on mobile */
@media (max-width: 480px) {
  .popup-notif { width: calc(100% - 36px); margin: 12px auto; font-size: 13px; }
}

/* Limit extremely long hero title on very narrow screens */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 22px; line-height: 1.15; }
  .judul { font-size: 22px; }
}

/* Keep modal overlay scrollable on small devices */
.modal-overlay { padding: 16px; }

/* Ensure map iframe does not exceed viewport when inside modal or small containers */
.map-container iframe { display: block; max-width: 100%; height: 100%; }

/* END responsive additions */
