/* CSS VARIABLES & DESIGN TOKENS */
:root {
  --font-main: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  
  /* Yeonggwang Colors */
  --color-gold: #F59E0B;
  --color-gold-light: #FBBF24;
  --color-gold-glow: rgba(245, 158, 11, 0.25);
  
  --color-ocean: #0284C7;
  --color-ocean-light: #38BDF8;
  --color-ocean-glow: rgba(2, 132, 199, 0.25);

  --color-teal: #0D9488;
  --color-teal-light: #14B8A6;
  
  --color-green: #10B981;
  --color-green-glow: rgba(16, 185, 129, 0.2);
  
  --color-red: #EF4444;
  --color-red-glow: rgba(239, 68, 68, 0.2);

  /* Background Palette (Deep Coastal Night Theme) */
  --bg-space: #070B19;
  --bg-deep: #0D152D;
  --bg-card: rgba(21, 32, 67, 0.45);
  --bg-card-hover: rgba(30, 45, 92, 0.65);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(2, 132, 199, 0.3);
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* RESET & BASE STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow balls */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-ocean-glow) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* HEADER & NAVIGATION */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 25, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px fill var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.header-logo-container {
  display: flex;
  align-items: center;
  height: 38px;
  background-color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.header-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo-area:hover .header-logo-container {
  background-color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ocean-light);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-btn svg {
  opacity: 0.7;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-btn.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-ocean-light);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.1);
}

.admin-badge-btn {
  border: 1px dashed rgba(245, 158, 11, 0.3);
}

.admin-badge-btn.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-gold);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

/* MAIN CONTENT AREA */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  min-height: calc(100vh - 200px);
}

/* TAB MANAGEMENT */
.tab-pane {
  display: none;
  animation: fadeInTab 0.4s ease-out forwards;
}

.tab-pane.active {
  display: block;
}

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

/* GLASS CARD COMMON STYLE */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* HERO SECTION */
.hero-section {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-content .highlight {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-ocean-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.badge {
  background: rgba(2, 132, 199, 0.15);
  color: var(--color-ocean-light);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* BUTTONS */
.btn {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-teal) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-large {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
}

/* STATS GAUGE CARD */
.stat-hero-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(21, 32, 67, 0.6) 0%, rgba(13, 21, 45, 0.8) 100%);
  border-color: rgba(2, 132, 199, 0.2);
}

.stat-hero-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.gauge-container {
  position: relative;
  width: 180px;
  margin: 0 auto;
}

.gauge {
  width: 100%;
  height: auto;
}

.gauge-value {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.gauge-labels strong {
  color: var(--text-primary);
}

/* QUICK STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.icon-yellow { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-number small {
  font-size: 0.9rem;
  margin-left: 0.15rem;
  color: var(--text-muted);
}

/* DASHBOARD CONTENT GRID */
.dashboard-content-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* DONUT CHART */
.donut-chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

.donut-chart-container {
  position: relative;
  width: 180px;
  height: 180px;
}

.donut-chart {
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.donut-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.donut-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legend-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.color-road { background-color: #38BDF8; }
.color-waste { background-color: #FBBF24; }
.color-light { background-color: #34D399; }
.color-safety { background-color: #F87171; }
.color-misc { background-color: #A78BFA; }

/* RECENT FEEDS */
.recent-feeds {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.feed-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 70%;
}

.feed-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

/* LIVE INDICATOR */
.live-indicator {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-red);
  background: rgba(239, 68, 68, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-red);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* BADGES FOR COMPLAINTS */
.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.status-badge.received { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.status-badge.processing { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.status-badge.resolved { background: rgba(16, 185, 129, 0.15); color: #10B981; }

/* COMPLAINT REGISTER FORM */
.form-container-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-section {
  margin-bottom: 2rem;
}

.section-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-ocean-light);
}

.required {
  color: var(--color-red);
}

/* CATEGORY SELECTOR CARDS */
.category-grid-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.category-grid-select input[type="radio"] {
  display: none;
}

.category-select-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-bounce);
}

.category-select-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.cat-icon {
  font-size: 1.75rem;
}

.cat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Radio Checked states */
.category-grid-select input[type="radio"]:checked + .category-select-card {
  background: rgba(2, 132, 199, 0.1);
  border-color: var(--color-ocean-light);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.25);
  transform: scale(1.02);
}

/* FORM ELEMENTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.row-layout {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea,
select {
  background: rgba(7, 11, 25, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: white;
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-ocean-light);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
  background: rgba(7, 11, 25, 0.9);
}

/* FILE UPLOAD ZONE */
.file-upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-zone:hover {
  border-color: var(--color-ocean-light);
  background: rgba(2, 132, 199, 0.03);
}

.file-upload-zone.dragover {
  border-color: var(--color-gold);
  background: rgba(245, 158, 11, 0.05);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  color: var(--text-muted);
}

.upload-prompt p {
  font-size: 0.9rem;
  font-weight: 600;
}

.upload-prompt span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-slot {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.preview-slot img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-red);
  color: white;
  border: none;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hidden {
  display: none !important;
}

/* LOCATION PICKER & MAP */
.location-picker-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.mock-map-card {
  background: rgba(7, 11, 25, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
}

.map-header {
  margin-bottom: 0.75rem;
}

.map-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.map-header small {
  color: var(--text-muted);
}

.mock-map-canvas {
  width: 100%;
  height: 240px;
  position: relative;
  background: rgba(7, 11, 25, 0.8);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-svg {
  width: 90%;
  height: 90%;
}

.map-region {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.map-region:hover {
  fill: rgba(2, 132, 199, 0.25);
  stroke: var(--color-ocean-light);
  stroke-width: 1.5;
}

.map-region.active {
  fill: rgba(2, 132, 199, 0.4);
  stroke: var(--color-ocean-light);
  stroke-width: 2;
}

.map-label {
  fill: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
}

.map-region:hover + .map-label,
.map-region.active + .map-label {
  fill: white;
}

.map-pin {
  position: absolute;
  font-size: 1.5rem;
  transform: translate(-50%, -100%);
  pointer-events: none;
  animation: bouncePin 0.4s ease-out;
  z-index: 10;
}

@keyframes bouncePin {
  0% { transform: translate(-50%, -200%); opacity: 0; }
  60% { transform: translate(-50%, -90%); }
  80% { transform: translate(-50%, -105%); }
  100% { transform: translate(-50%, -100%); opacity: 1; }
}

.location-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-gps {
  margin-top: 0.5rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-ocean-light);
  border: 1px dashed rgba(2, 132, 199, 0.3);
}

.btn-gps:hover {
  background: rgba(2, 132, 199, 0.2);
}

/* CREDENTIALS SECTION */
.credentials-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  user-select: none;
}

.form-submit-panel {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* MY COMPLAINT TRACKING */
.track-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.search-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.search-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-tab-btn:hover {
  color: var(--text-primary);
}

.search-tab-btn.active {
  color: var(--color-ocean-light);
  border-bottom: 2px solid var(--color-ocean-light);
}

.search-form-pane {
  display: none;
}

.search-form-pane.active {
  display: block;
}

.search-form-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.search-form-row .form-group {
  margin-bottom: 0;
  flex: 1;
}

.btn-search {
  height: 44px;
  padding: 0 2rem;
}

/* MULTI COMPLAINT SELECT */
.comp-list-mini {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.comp-item-mini {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.comp-item-mini:hover {
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.3);
}

.comp-item-mini.selected {
  background: rgba(2, 132, 199, 0.1);
  border-color: var(--color-ocean-light);
}

/* TRACK RESULT CARD */
.track-result-card {
  animation: slideUp 0.5s ease-out;
}

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.result-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.result-title-group h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.result-id {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* PROGRESS STEPPER */
.progress-stepper-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.stepper-line {
  position: absolute;
  top: 15px;
  left: 3rem;
  right: 3rem;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.stepper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-ocean) 0%, var(--color-teal) 100%);
  width: 0%;
  transition: width 0.8s ease-in-out;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
}

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

.step-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Active and Completed step states */
.step-item.active .step-dot {
  border-color: var(--color-ocean-light);
  background: var(--color-ocean);
  color: white;
  box-shadow: 0 0 15px var(--color-ocean-glow);
}

.step-item.active .step-label {
  color: var(--text-primary);
}

.step-item.completed .step-dot {
  border-color: var(--color-teal);
  background: var(--color-teal);
  color: white;
}

.step-item.completed .step-label {
  color: var(--text-secondary);
}

/* RESULTS DETAILS GRID */
.result-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.detail-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ocean-light);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-ocean);
  padding-left: 0.5rem;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th, .detail-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}

.detail-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 100px;
  vertical-align: top;
}

.detail-table td {
  color: var(--text-primary);
}

.pre-wrap {
  white-space: pre-wrap;
  word-break: break-all;
}

.result-image-box {
  background: rgba(7, 11, 25, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.result-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.no-photo {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ADMIN ANSWER SECTION */
.answer-section {
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  animation: pulseAnswer border 2s infinite alternate;
}

.answer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.officer-badge {
  background: var(--color-teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.answer-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.answer-content {
  font-size: 0.9rem;
}

.officer-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.officer-info strong {
  color: var(--text-secondary);
}

.officer-body {
  color: var(--text-primary);
  line-height: 1.5;
  background: rgba(7, 11, 25, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

/* SATISFACTION SURVEY */
.satisfaction-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.satisfaction-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.survey-inputs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.star-rating-box {
  display: flex;
  gap: 0.25rem;
}

.star-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.15);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.star-btn:hover,
.star-btn.highlighted {
  color: var(--color-gold);
  transform: scale(1.15);
  text-shadow: 0 0 10px var(--color-gold-glow);
}

.survey-form-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.survey-submitted-feedback {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ADMIN AUTH GATE */
.admin-auth-card {
  max-width: 420px;
  margin: 4rem auto;
  text-align: center;
  padding: 2.5rem 2rem;
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.admin-auth-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.admin-auth-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.demo-tip {
  color: var(--color-gold) !important;
  font-weight: 600;
  margin-bottom: 1.5rem !important;
}

/* ADMIN PANEL GRID */
.admin-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.admin-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.admin-filters {
  display: flex;
  gap: 0.25rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: var(--color-ocean);
  color: white;
  border-color: var(--color-ocean);
}

.admin-complaints-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.adm-comp-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adm-comp-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.adm-comp-item.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--color-ocean-light);
}

.adm-comp-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 70%;
}

.adm-comp-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-comp-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* REALTIME LOGS CONSOLE */
.admin-log-card {
  padding: 1.25rem;
}

.btn-clear-logs {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.btn-clear-logs:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.log-console {
  background: #020617;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.85rem;
  height: 160px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--color-green);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
}

.log-line.error { color: var(--color-red); }
.log-line.system { color: #38BDF8; }
.log-line.sms { color: var(--color-gold); }

/* RIGHT PANEL: ACTIONS */
.admin-action-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.empty-detail-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--text-muted);
  text-align: center;
  gap: 0.75rem;
}

.empty-detail-state svg {
  opacity: 0.4;
}

.action-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.adm-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.adm-meta-info {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.adm-meta-info strong {
  color: var(--text-muted);
}

.adm-desc-box {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.adm-desc-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.adm-desc-box p {
  background: rgba(7, 11, 25, 0.4);
  padding: 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
}

.adm-photo-container {
  margin-top: 0.75rem;
  width: 120px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.adm-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ADMIN UPDATE FORM STYLING */
.adm-field-label {
  color: var(--color-ocean-light);
  font-weight: 700;
}

.status-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-selector-grid input[type="radio"] {
  display: none;
}

.status-btn-label {
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.status-btn-label:hover {
  background: rgba(255,255,255,0.06);
}

/* Status Radio Checked */
#adm-st-received:checked + .btn-st-rec {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

#adm-st-processing:checked + .btn-st-pro {
  background: rgba(251, 191, 36, 0.15);
  border-color: #FBBF24;
  color: #FBBF24;
}

#adm-st-resolved:checked + .btn-st-sol {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
}

.btn-save-admin {
  margin-top: 0.5rem;
}

/* NO RESULT CARD */
.no-result-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

/* TOAST NOTIFICATION STYLING */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  max-width: 360px;
}

.toast {
  background: #1e1b4b; /* Deep Indigo matching notification style */
  border-left: 4px solid var(--color-gold);
  border-radius: 8px;
  padding: 1rem;
  color: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: slideInToast 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  position: relative;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(100%) translateY(20px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}

.toast.removing {
  animation: slideOutToast 0.3s ease-in forwards;
}

@keyframes slideOutToast {
  to { opacity: 0; transform: translateX(100%); }
}

.toast-header {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.6;
}

.toast-close:hover { opacity: 1; }

.toast-body {
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.toast-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

/* FOOTER AREA */
.main-footer {
  border-top: 1px solid var(--border-light);
  background: rgba(7, 11, 25, 0.9);
  padding: 2.5rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.copyright {
  margin-top: 0.25rem;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .location-picker-wrapper {
    grid-template-columns: 1fr;
  }

  .result-details-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    justify-content: flex-start;
  }

  .nav-btn {
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .credentials-row {
    grid-template-columns: 1fr;
  }

  .search-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-search {
    width: 100%;
  }

  .progress-stepper-container {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stepper-line {
    display: none;
  }

  .step-item {
    flex: none;
    width: 45%;
  }
}

/* CI INFO SECTION STYLE */
.ci-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.ci-grid, .slogan-grid {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

.ci-image-area, .slogan-image-area {
  flex: 0 0 140px;
  background-color: white;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  height: 140px;
}

.ci-main-img, .slogan-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ci-desc-area h4, .slogan-desc-area h4 {
  font-size: 0.95rem;
  color: var(--color-ocean-light);
  margin-bottom: 0.75rem;
}

.ci-bullets {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0;
}

.ci-bullets li {
  line-height: 1.4;
}

.ci-bullets li strong {
  color: var(--text-primary);
  display: inline-block;
  margin-right: 0.25rem;
}

.slogan-explanation {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.slogan-explanation strong {
  color: var(--color-gold);
}

.colors-container {
  margin-top: 1.25rem;
}

.colors-container h4 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.colors-flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.color-pill-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.color-badge-pill {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.color-pill-box div {
  display: flex;
  flex-direction: column;
}

.color-pill-box strong {
  font-size: 0.75rem;
  color: var(--text-primary);
}

.color-pill-box span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .ci-info-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .ci-grid, .slogan-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .ci-image-area, .slogan-image-area {
    flex: 0 0 120px;
    height: 120px;
  }

  .colors-flex {
    grid-template-columns: 1fr;
  }
}

