@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f5f8ff;
  color: #183a75;
  line-height: 1.6;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.logo img {
  width: 110px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: #183a75;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #e53935;
}

/* USER PILL SECTION */
.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

/* Profile pill button */
.pill {
  background: #f1f4ff;
  border: 1px solid #dbe3fa;
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  background: #e3e8ff;
  box-shadow: 0 2px 8px rgba(26, 61, 124, 0.15);
}

.pill span:first-child {
  font-weight: 600;
  color: #183a75;
}

.pill span:last-child {
  font-size: 0.85rem;
  color: #5a6ea8;
}

/* Logout button */
.logout-btn {
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.logout-btn:hover {
  background: #c62828;
}

/* RESPONSIVENESS */
@media (max-width: 430px) {
  .user-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
  }

  .pill {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
  }

  .logout-btn {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 8px 0;
  }
}

/* HERO / SOS SECTION */
#sos-area {
  text-align: center;
  margin: 60px auto 40px;
  padding: 0 16px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
}

.hero-sub {
  color: #5a6ea8;
  margin-bottom: 24px;
}

.sos {
  width: 180px;
  height: 180px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(229, 57, 53, 0.35);
  transition: all 0.25s ease;
}

.sos:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 36px rgba(229, 57, 53, 0.45);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 24px 28px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.countdown-text {
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* FORM SECTION */
#report-others {
  background: #fff;
  max-width: 700px;
  margin: 40px auto;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(26, 61, 124, 0.1);
}

#report-others h3 {
  margin-bottom: 16px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-row {
  display: flex;
  gap: 10px;
}

input[type="text"],
input[type="tel"],
textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccd6f6;
  border-radius: 6px;
  background: #f8fbff;
  transition: border 0.2s, background 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #183a75;
  background: #fff;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-primary {
  background: #183a75;
  color: #fff;
}

.btn-primary:hover {
  background: #284d9a;
}

.btn-secondary {
  background: #f1f4ff;
  color: #183a75;
}

.btn-secondary:hover {
  background: #e3e8ff;
}

.btn-danger {
  background: #d32f2f;
  color: #fff;
}

.btn-danger:hover {
  background: #b71c1c;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- RESPONSIVENESS ---------- */

/* Tablets and smaller laptops (768px and below) */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  #report-others {
    padding: 24px 20px;
  }
}

/* Standard mobile screens (360px–430px) */
@media (max-width: 430px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .logo img {
    width: 90px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
  }

  #sos-area {
    margin: 40px auto 30px;
    padding: 0 10px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .sos {
    width: 140px;
    height: 140px;
    font-size: 2rem;
  }

  #report-others {
    margin: 24px 12px;
    padding: 20px 14px;
  }

  .input-row {
    flex-direction: column;
  }

  button,
  input,
  textarea {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger {
    width: 100%;
    text-align: center;
  }

  .modal-content {
    padding: 18px;
  }
}

/* Very small devices (below 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .sos {
    width: 120px;
    height: 120px;
    font-size: 1.8rem;
  }

  #report-others {
    padding: 16px 12px;
  }

  input,
  textarea {
    font-size: 0.95rem;
  }
}

.auth-container {
  position: relative;
  margin-left: auto;
}

.profile-wrapper {
  position: relative;
  cursor: pointer;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.dropdown-menu{
  position:absolute;
  right:0;
  top:55px;
  width:230px;
  background:white;
  border-radius:12px;
  box-shadow:0 12px 25px rgba(0,0,0,0.15);
  padding:15px;
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;
  transition:all .25s ease;
}

.dropdown-menu.show{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}


.dropdown-menu button {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: none;
  background: #ef4444;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}