/**
 * Kakinada City Portal — Coastal Glassmorphic Stylesheet
 * Colors: Deep Oceanic Navy, Coastal Teal, Gold & Sand
 */

:root {
  --primary-navy: #062446;
  --secondary-navy: #0f3d6c;
  --ocean-blue: #0284c7;
  --ocean-light: #e0f2fe;
  --teal-accent: #0d9488;
  --gold-accent: #f59e0b;
  --gold-soft: #fef3c7;
  --sand-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-line: #e2e8f0;
  --danger-red: #ef4444;
  --success-green: #10b981;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-soft: 0 10px 25px -5px rgba(6, 36, 70, 0.08), 0 8px 10px -6px rgba(6, 36, 70, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(6, 36, 70, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--sand-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Sticky Emergency Hotline Bar
   ========================================================================== */
.emergency-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #021226;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.emergency-container {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.emergency-container::-webkit-scrollbar {
  display: none;
}

.emergency-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: #fca5a5;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--danger-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.emergency-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.emergency-btn:hover {
  background: var(--danger-red);
  border-color: var(--danger-red);
  color: #ffffff;
}

/* ==========================================================================
   Header & Branding
   ========================================================================== */
.portal-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
  position: sticky;
  top: 33px;
  z-index: 90;
}

.header-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ocean-blue), var(--primary-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ocean-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-smart {
  font-size: 0.68rem;
  font-weight: 750;
  background: var(--gold-soft);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.button-cta {
  background: linear-gradient(135deg, var(--ocean-blue), #0270a8);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.button-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

.glass-icon-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.glass-icon-btn:hover {
  background: #e2e8f0;
}

.fav-count {
  background: var(--primary-navy);
  color: #ffffff;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.portal-hero {
  position: relative;
  background: linear-gradient(160deg, #031e3d 0%, #063c70 50%, #0c4a6e 100%);
  color: #ffffff;
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.hero-content {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-heading {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

/* Search Box */
.search-box {
  max-width: 38rem;
  margin: 0 auto 2.2rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.1rem;
  pointer-events: none;
}

#city-search {
  width: 100%;
  padding: 1.1rem 3rem 1.1rem 3.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#city-search:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3), 0 12px 35px rgba(0, 0, 0, 0.25);
}

.clear-search-btn {
  position: absolute;
  right: 1.2rem;
  background: #e2e8f0;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}

/* Stat Pills */
.stat-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.stat-num {
  color: var(--gold-accent);
  font-weight: 800;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.portal-main {
  max-width: 78rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Filter Section */
.filter-section {
  margin-bottom: 2rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-tab {
  background: #ffffff;
  border: 1px solid var(--border-line);
  color: var(--text-main);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  border-color: var(--ocean-blue);
  background: var(--ocean-light);
}

.cat-tab.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 10px rgba(6, 36, 70, 0.18);
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-line);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Section Titles */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.result-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* Directory Card */
.dir-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ocean-blue);
}

.dir-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.cat-badge[data-cat="Tourism"] { background: #dbeafe; color: #1e40af; }
.cat-badge[data-cat="Food"] { background: #fef3c7; color: #92400e; }
.cat-badge[data-cat="Healthcare"] { background: #fee2e2; color: #991b1b; }
.cat-badge[data-cat="Education"] { background: #e0e7ff; color: #3730a3; }
.cat-badge[data-cat="Services"] { background: #dcfce7; color: #166534; }

.fav-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s ease;
}

.fav-btn:hover {
  transform: scale(1.2);
}

.dir-badge-banner {
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--ocean-blue);
  background: var(--ocean-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.dir-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.dir-telugu {
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 0.95rem;
  color: #0369a1;
  margin-bottom: 0.75rem;
}

.dir-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.stars { color: #f59e0b; font-weight: 800; }
.reviews-count { color: var(--text-muted); }

.dir-desc {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 1.1rem;
  flex-grow: 1;
  line-height: 1.5;
}

.dir-meta {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
}

.dir-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.dir-actions {
  display: flex;
  gap: 0.65rem;
}

.call-btn {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 750;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.call-btn:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-line);
}

.empty-icon { font-size: 3rem; display: block; margin-bottom: 0.85rem; }
.empty-state h4 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--primary-navy); }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Spotlight Section */
.spotlight-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.spotlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.spotlight-icon { font-size: 2.2rem; margin-bottom: 0.85rem; }
.spotlight-card h4 { font-size: 1.15rem; font-weight: 800; color: var(--primary-navy); margin-bottom: 0.5rem; }
.spotlight-card p { font-size: 0.88rem; color: #475569; line-height: 1.5; }

/* Footer */
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.portal-modal {
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  padding: 0;
  max-width: 36rem;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.portal-modal::backdrop {
  background: rgba(6, 36, 70, 0.65);
  backdrop-filter: blur(6px);
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--primary-navy);
}

.modal-close {
  background: #f1f5f9;
  border: none;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-form {
  display: grid;
  gap: 1rem;
}

.modal-form label {
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Toast */
.portal-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 48rem) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .branding { justify-content: center; }
  .header-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .emergency-container { padding-inline: 0.5rem; }
}


/* ==========================================================================
   Module Navigation & View Management
   ========================================================================== */
.portal-nav-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--border-line);
  position: sticky;
  top: 33px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(6, 36, 70, 0.05);
}

.nav-container {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  background: var(--ocean-light);
  color: var(--primary-navy);
}

.nav-tab-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 36, 70, 0.2);
}

.nav-badge-pill {
  font-size: 0.72rem;
  background: var(--gold-accent);
  color: #000;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 800;
}

/* View switching */
.portal-view {
  display: block;
  animation: fadeIn 0.3s ease;
}

.portal-view[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header Rows */
.view-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-header h2 {
  font-size: 1.85rem;
  color: var(--primary-navy);
  font-weight: 800;
}

.view-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Module Feature Matrix on Home */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.matrix-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--ocean-blue);
  box-shadow: var(--shadow-hover);
}

.matrix-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.matrix-card h3 {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.matrix-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.matrix-link {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ocean-blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Jobs Grid & Cards */
.jobs-grid, .properties-grid, .tourism-grid, .updates-grid, .qa-grid, .emergency-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.5rem;
}

.job-card, .prop-card, .tourism-card, .update-card, .qa-card, .emergency-card-page {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover, .prop-card:hover, .tourism-card:hover, .update-card:hover, .qa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.type-pill {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--ocean-light);
  color: var(--primary-navy);
}

.salary-pill, .price-pill {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal-accent);
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.chip {
  font-size: 0.74rem;
  background: #f1f5f9;
  color: #334155;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Tourism Detail Highlights */
.tourism-card .timings-banner {
  background: #f0fdf4;
  color: #166534;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.6rem 0;
}

/* Emergency Page Big Cards */
.emergency-card-page {
  border-top: 4px solid var(--danger-red);
}

.emergency-card-page.medical { border-top-color: #0284c7; }
.emergency-card-page.fire { border-top-color: #ea580c; }
.emergency-card-page.civic { border-top-color: #0d9488; }
.emergency-card-page.safety { border-top-color: #8b5cf6; }

.emergency-big-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-navy);
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

/* Community Q&A Cards */
.qa-voting-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.upvote-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.upvote-btn:hover {
  background: #e2e8f0;
}

.verified-resident-badge {
  background: #dcfce7;
  color: #166534;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.answers-container {
  margin-top: 1rem;
  border-top: 1px solid var(--border-line);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.answer-item {
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Admin Console */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.admin-login-box {
  max-width: 26rem;
  margin: 3rem auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-hover);
}

.admin-sub-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 0.5rem;
}

.admin-sub-btn {
  background: #f8fafc;
  border: 1px solid var(--border-line);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.admin-sub-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.pending-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pending-table th, .pending-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-line);
}

.pending-table th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--primary-navy);
}

.btn-approve {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-reject {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Compliance links in footer */
.compliance-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.compliance-links a {
  color: #94a3b8;
  text-decoration: underline;
}

.compliance-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Admin Data Editor & Dashboard Enhancements
   ========================================================================== */
.admin-mode-bar {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.admin-mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.admin-mode-btn.active {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
}

.admin-search-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-grow: 1;
  max-width: 24rem;
}

.admin-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.admin-data-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: var(--primary-navy);
  border-bottom: 2px solid var(--border-line);
  white-space: nowrap;
}

.admin-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-line);
  vertical-align: middle;
  color: #334155;
}

.admin-data-table tr:hover td {
  background: #f8fafc;
}

.badge-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-status-approved, .badge-status-published {
  background: #dcfce7;
  color: #15803d;
}

.badge-status-pending {
  background: #fef3c7;
  color: #b45309;
}

.badge-status-rejected, .badge-status-closed {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-edit {
  background: var(--ocean-blue);
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-edit:hover {
  background: #0369a1;
}

.btn-delete {
  background: transparent;
  color: #ef4444;
  border: 1px solid #fca5a5;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-delete:hover {
  background: #fee2e2;
}

.btn-add-record {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-add-record:hover {
  background: #059669;
}
