:root {
  /* === BRAND COLORS (BALIWASAN) === */
  --primary-color: #FF8C00;   /* Vibrant orange – main brand */
  --primary-light: #FFA500;   /* Softer golden orange */
  --primary-soft-bg: #FFF4E5; /* Very light orange wash */
  --primary-dark: #CC6F00;    /* Deeper orange for hover/headers */

  --bg-body: #FFFDF8;         /* Overall app background */
  --light-bg: #F7F7FB;        /* Soft neutral background for sections */

  /* Text */
  --text-main: #222222;
  --text-muted: #6C757D;
  --text-on-primary: #FFFFFF;

  /* Accent: Blue (logo / outlines) */
  --accent-color: #0000FF;
  --accent-light: rgba(0, 0, 255, 0.08);
  --accent-dark: #0000CC;

  /* Cards / Success (using seal green) */
  --card-bg: #FFFFFF;
  --card-bg-soft: #FFF9ED;
  --card-border: #F0E2D0;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);

  --card-color: #008000;  /* “Success” / positive button (seal green) */
  --card-dark: #006400;

  /* Buttons */
  --button-color: #FF8C00;
  --button-hover: #CC6F00;

  /* Seal Colors (for accents, tags, chips) */
  --seal-gold: #FFD700;
  --seal-red: #FF0000;
  --seal-green: #008000;
  --seal-blue: #0000FF;

  /* Optional secondary accent */
  --purple-accent: #6B8CFF;
}

/* === GLOBAL RESET & CONTAINER === */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  background: var(--bg-body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
}

.mobile-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  position: relative;
  background: var(--bg-body);
  padding-bottom: 160px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  border-radius: 0;
}

.mobile-container > * {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 375px) {
  .mobile-container {
    max-width: 100%;
    box-shadow: none;
  }
}

.main-container {
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.main-container::-webkit-scrollbar {
  display: none; /* Webkit (Chrome, Safari) */
}

/* === HEADER & NOTIFICATION === */
.header {
  background: #FFFFFF;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F0E2D0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.3px;
}

.notification-icon,
.notification-bell {
  position: relative;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.notification-icon:hover,
.notification-bell:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--seal-red);
  color: #FFFFFF;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* === SEARCH BAR === */
.search-container {
  position: relative;
  padding: 12px 20px 18px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding-left: 42px;
  padding-right: 16px;
  border-radius: 999px;
  border: 1px solid #F0E2D0;
  background: #FFFDF8;
  box-shadow: 0 2px 10px rgba(255, 140, 0, 0.07);
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
  outline: none;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.search-input::placeholder {
  color: #B0B0B0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.18);
  background: #FFFFFF;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  background: #FFFFFF;
  border-top: 1px solid #F0E2D0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 10px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
  transition: all 0.25s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item.active .nav-icon {
  background: rgba(255, 140, 0, 0.12);
}

.nav-item:hover {
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-icon {
  font-size: 18px;
  margin-bottom: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* === ANIMATIONS === */
.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SWAL2 POPUP STYLING === */
.swal2-popup {
  width: 90% !important;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
  font-family: system-ui, sans-serif;
  background: #FFFFFF !important;
  border: 1px solid #F0E2D0;
}

.swal2-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.swal2-html-container {
  font-size: 14px;
  color: var(--text-main);
}

.swal2-title,
.swal2-html-container {
  text-align: center;
}

.swal2-actions {
  border-top: none;
  justify-content: center;
  margin-top: 12px !important;
}

.swal2-confirm,
.swal2-cancel {
  border-radius: 999px !important;
  padding: 9px 20px !important;
  font-size: 14px;
}

.swal2-confirm {
  background: var(--button-color) !important;
  border: none !important;
}

.swal2-confirm:hover {
  background: var(--button-hover) !important;
}

.swal2-backdrop-show {
  background: rgba(0, 0, 0, 0.4) !important;
}

.swal2-show {
  animation: fadeInUp 0.3s ease-out;
}

/* === NEWS PAGE STYLES === */
.news-tabs {
  display: flex;
  background: #FFFFFF;
  border-bottom: 1px solid #F0E2D0;
  padding: 0 20px;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  font-size: 13px;
}

.tab-item.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.news-content {
  padding: 15px 20px 100px;
}

.featured-news {
  margin-bottom: 25px;
}

.featured-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--card-border);
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.featured-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 42px;
}

.featured-content {
  padding: 18px 18px 16px;
}

.featured-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.featured-excerpt {
  font-size: 13px;
  color: #555555;
  line-height: 1.45;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid #F5E6CE;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.news-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.news-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.news-details {
  flex: 1;
}

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.news-summary {
  font-size: 13px;
  color: #666666;
  line-height: 1.45;
}

.category-badge {
  background: var(--primary-soft-bg);
  color: var(--primary-dark);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* === CATEGORY COLOR TAGS (for requirements) === */
.tag-emergency {
  background: linear-gradient(135deg, var(--seal-red), #FF6B3D);
  color: #FFFFFF;
}
.tag-disaster {
  background: linear-gradient(135deg, var(--seal-blue), var(--primary-color));
  color: #FFFFFF;
}
.tag-traffic {
  background: linear-gradient(135deg, var(--seal-gold), var(--primary-color));
  color: #4A3200;
}
.tag-utilities {
  background: linear-gradient(135deg, #CCCCFF, var(--accent-color));
  color: #0E0E3D;
}
.tag-crime {
  background: linear-gradient(135deg, #111111, #333333);
  color: #FFFFFF;
}
.tag-social {
  background: linear-gradient(135deg, var(--seal-green), #5CD85C);
  color: #FFFFFF;
}
.tag-request {
  background: linear-gradient(135deg, #FFFFFF, var(--primary-soft-bg));
  color: var(--primary-dark);
  border: 1px solid #F0E2D0;
}

/* Generic pill style – combine with tag-* */
.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* === SERVICES PAGE STYLES === */
.services-content {
  padding: 0 20px 100px;
}

.category-section {
  margin-bottom: 26px;
}

.category-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #F5E6CE;
  transition: all 0.25s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.service-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Category variants for icons (optional to use by class) */
.service-icon-circle.emergency {
  background: linear-gradient(135deg, var(--seal-red), #FF6B3D);
}
.service-icon-circle.disaster {
  background: linear-gradient(135deg, var(--seal-blue), var(--primary-color));
}
.service-icon-circle.traffic {
  background: linear-gradient(135deg, var(--seal-gold), var(--primary-color));
}
.service-icon-circle.utilities {
  background: linear-gradient(135deg, #CCCCFF, var(--accent-color));
}
.service-icon-circle.crime {
  background: linear-gradient(135deg, #000000, #333333);
}
.service-icon-circle.social {
  background: linear-gradient(135deg, var(--seal-green), #5CD85C);
}

.service-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.service-arrow {
  color: #B0B0B8;
  font-size: 14px;
}

.service-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 54px;
  line-height: 1.4;
}

/* === EMERGENCY PAGE STYLES === */
.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

/* reuse .notification-bell and .notification-badge from above */

.communications-section {
  padding: 20px;
  margin-bottom: 26px;
  background: var(--card-bg-soft);
  border-radius: 18px;
  border: 1px dashed #F0E2D0;
}

.section-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F3E0C7;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-info {
  flex: 1;
}

.contact-provider {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-number {
  font-size: 15px;
  color: var(--primary-dark);
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.call-btn {
  background: var(--seal-green);
  color: #FFFFFF;
}

.call-btn:hover {
  background: #01944E;
  transform: scale(1.05);
}

.copy-btn {
  background: #FFFDF8;
  color: var(--text-muted);
  border: 1px solid #F0E2D0;
}

.copy-btn:hover {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
}

.emergency-services {
  padding: 0 20px 120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.emergency-services .service-card {
  text-align: center;
  border-radius: 18px;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: #FFFFFF;
}

/* keep some distinctive colors */
.police-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.fire-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.hospital-icon {
  background: linear-gradient(135deg, #17A2B8, #0F7385);
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* === PROFILE PAGE STYLES === */
.profile-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  padding: 28px 20px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
  margin: 0 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: #FFFFFF;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.profile-avatar i {
  font-size: 36px;
  color: #CCCCCC;
}

.profile-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.profile-location {
  font-size: 14px;
  opacity: 0.95;
  margin: 0 0 6px 0;
}

.profile-date {
  font-size: 12px;
  opacity: 0.9;
}

.profile-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 50px;
  height: 50px;
  background: #FFFFFF;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.profile-badge i {
  font-size: 22px;
  color: var(--accent-color);
}

.menu-section {
  padding: 0 20px;
  margin-bottom: 26px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #F0E2D0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--primary-soft-bg);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 14px;
}

.menu-item-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 18px;
}

.menu-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.menu-arrow {
  color: #C4C4CC;
  font-size: 16px;
}

/* === HERO / HOMEPAGE STYLES === */
.hero-section {
  background: radial-gradient(circle at top left, #FFE1B5 0%, #FFFDF8 45%, #FFEBD1 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}

.geometric-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 150px;
  opacity: 0.8;
}

.shape {
  position: absolute;
  border-radius: 18px;
}

.shape-1 {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  top: 20px;
  right: 80px;
  animation: float 3s ease-in-out infinite;
}

.shape-2 {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  top: 60px;
  right: 20px;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite 0.5s;
}

.shape-3 {
  width: 40px;
  height: 40px;
  background: var(--seal-gold);
  top: 10px;
  right: 140px;
  animation: float 3s ease-in-out infinite 1s;
}

.shape-4 {
  width: 35px;
  height: 35px;
  background: var(--seal-green);
  top: 80px;
  right: 120px;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.greeting-text {
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === HELP CARD & BUTTONS === */
.help-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 20px;
  padding: 18px 16px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(204, 111, 0, 0.45);
}

.help-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.help-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.help-description {
  font-size: 13px;
  opacity: 0.95;
  margin-bottom: 18px;
  line-height: 1.4;
}

.help-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-outline-light {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  background: #FFFFFF;
  color: var(--primary-dark);
}

.btn-warning-custom {
  background: var(--button-color);
  border: none;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-warning-custom:hover {
  background: var(--button-hover);
}

.btn-accent-custom {
  background: var(--accent-color);
  border: none;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-accent-custom:hover {
  background: var(--accent-dark);
}

.btn-success-custom {
  background: var(--card-color);
  border: none;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-success-custom:hover {
  background: var(--card-dark);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 375px) {
  .services-grid {
    margin-bottom: 0;
  }

  .emergency-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 110px;
  }
}
