@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
  --bg-primary: #090a15;
  --bg-secondary: #12142d;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  
  /* Glass colors */
  --glass-bg: rgba(20, 24, 53, 0.55);
  --glass-bg-hover: rgba(28, 33, 71, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(139, 92, 246, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Accents */
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-pink: #ec4899;
  --accent-pink-glow: rgba(236, 72, 153, 0.4);
  
  /* Status Colors */
  --status-pending: rgba(234, 179, 8, 0.2);
  --status-pending-text: #f59e0b;
  --status-pending-border: rgba(234, 179, 8, 0.35);
  
  --status-inprogress: rgba(6, 182, 212, 0.2);
  --status-inprogress-text: #22d3ee;
  --status-inprogress-border: rgba(6, 182, 212, 0.35);
  
  --status-completed: rgba(34, 197, 94, 0.2);
  --status-completed-text: #4ade80;
  --status-completed-border: rgba(34, 197, 94, 0.35);
  
  --status-closed: rgba(148, 163, 184, 0.15);
  --status-closed-text: #cbd5e1;
  --status-closed-border: rgba(148, 163, 184, 0.25);

  --font-title: 'Sarabun', sans-serif;
  --font-body: 'Sarabun', sans-serif;
}

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

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

/* Background Glowing Ambient Orbs */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: float 25s infinite alternate ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 80px) scale(1.1);
  }
  100% {
    transform: translate(-20px, -50px) scale(0.9);
  }
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-interactive:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Application Layout */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

/* Header & Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-bottom: 24px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.logo-text h1 {
  font-size: 1.5rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Live Clock & Price Ticker */
.info-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.ticker-item-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

.ticker-item-success {
  color: var(--status-completed-text);
  font-weight: 700;
}

/* Role Switcher Selection */
.role-switcher-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-switcher-select {
  background: rgba(18, 20, 45, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-title);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.role-switcher-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* Buttons and Inputs */
.glass-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.glass-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(6, 182, 212, 0.35));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px var(--accent-purple-glow);
  transform: translateY(-1px);
}

.glass-btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  box-shadow: 0 4px 15px var(--accent-purple-glow);
  border: none;
}

.glass-btn-primary:hover {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

.glass-btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.glass-btn-danger:hover {
  background: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.glass-input, .glass-textarea, .glass-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 10px 14px;
  width: 100%;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s ease;
}

.glass-input:focus, .glass-textarea:focus, .glass-select:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.glass-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Kanban Board Styling */
.kanban-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .kanban-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kanban-container {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  padding: 16px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.column-title {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
}

.task-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
}

/* Kanban Card Styles */
.task-card {
  position: relative;
  overflow: hidden;
}

.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.task-card.status-Pending::before { background-color: var(--status-pending-text); }
.task-card.status-In-Progress::before { background-color: var(--status-inprogress-text); }
.task-card.status-Completed::before { background-color: var(--status-completed-text); }
.task-card.status-Closed::before { background-color: var(--status-closed-text); }

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
}

.task-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-pending {
  background: var(--status-pending);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.badge-inprogress {
  background: var(--status-inprogress);
  color: var(--status-inprogress-text);
  border: 1px solid var(--status-inprogress-border);
}

.badge-completed {
  background: var(--status-completed);
  color: var(--status-completed-text);
  border: 1px solid var(--status-completed-border);
}

.badge-closed {
  background: var(--status-closed);
  color: var(--status-closed-text);
  border: 1px solid var(--status-closed-border);
}

.task-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  margin-top: 8px;
}

.task-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.officer-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Layout for Active Officer Portal */
.officer-portal-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .officer-portal-grid {
    grid-template-columns: 1fr;
  }
}

.active-task-panel {
  padding: 20px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.panel-title {
  font-size: 1.25rem;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-task-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Interactive Mock Camera Element */
.camera-module {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view */
}

.camera-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 12px;
  color: var(--text-secondary);
}

.camera-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 12px;
  font-size: 0.7rem;
  font-family: monospace;
  color: #22c55e;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  pointer-events: none;
}

.camera-shutter-container {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.shutter-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shutter-btn:hover {
  transform: scale(1.05);
  background: var(--accent-cyan);
}

.shutter-btn:active {
  transform: scale(0.95);
}

/* Simulated GPS Map Selector */
.location-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  font-size: 0.8125rem;
}

.location-map-picker {
  height: 180px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  z-index: 1;
}

/* Supervisor Dashboard Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-details h3 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-details p {
  font-size: 1.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-card:nth-child(1) .kpi-icon { color: var(--accent-purple); box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2); }
.kpi-card:nth-child(2) .kpi-icon { color: var(--accent-cyan); box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.2); }
.kpi-card:nth-child(3) .kpi-icon { color: #f59e0b; box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.2); }
.kpi-card:nth-child(4) .kpi-icon { color: #22c55e; box-shadow: inset 0 0 10px rgba(34, 197, 150, 0.2); }

/* Central Supervisor Workspace: Map and Officers Panel */
.supervisor-workspace {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .supervisor-workspace {
    grid-template-columns: 1fr;
  }
}

.live-map-panel {
  display: flex;
  flex-direction: column;
  height: 450px;
}

.map-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-map {
  flex-grow: 1;
  width: 100%;
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

/* Dark Tiles for Leaflet */
.leaflet-container {
  background: var(--bg-secondary) !important;
}

/* Officers Grid Panel */
.officers-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-height: 450px;
}

.panel-section-title {
  font-size: 1.125rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.officers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
}

.officer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.officer-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.officer-avatar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.officer-row-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--glass-border);
}

.officer-row-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.officer-row-vehicle {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.officer-row-status {
  text-align: right;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-idle { background-color: var(--text-secondary); }
.dot-active { background-color: var(--accent-cyan); }
.dot-completed { background-color: var(--status-completed-text); }

.officer-row-km {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* Master Task Administration & Creator Panel */
.admin-tasks-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .admin-tasks-container {
    grid-template-columns: 1fr;
  }
}

.master-tasks-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.master-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.master-table th {
  padding: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.master-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.master-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Task Creator Form */
.task-creator-panel {
  padding: 20px;
  height: fit-content;
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

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

/* Modal and Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 6, 15, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 24px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* Timelines in Modals */
.timeline {
  margin-top: 20px;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 4px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item-START_TASK .timeline-marker { border-color: var(--accent-purple); }
.timeline-item-ARRIVE_DESTINATION .timeline-marker { border-color: var(--accent-cyan); }
.timeline-item-ARRIVE_OFFICE .timeline-marker { border-color: var(--status-completed-text); }

.timeline-content {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 8px;
}

.timeline-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.timeline-coords {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: monospace;
  margin-bottom: 8px;
}

.timeline-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-photo {
  width: 100%;
  max-width: 320px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Empty notifications styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.empty-state p {
  font-size: 0.875rem;
}

/* Fuel override modal adjustments */
.override-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Custom leaflet control panel adjustments for glass theme */
.leaflet-bar {
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(8px);
}

.leaflet-bar a:hover {
  background-color: var(--glass-bg-hover) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 10px !important;
  box-shadow: var(--glass-shadow) !important;
}

.leaflet-popup-tip {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border);
}

.map-photo-popup {
  max-width: 150px;
  border-radius: 4px;
  margin-top: 6px;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* Mobile Kanban Tab Navigation */
.kanban-tabs {
  display: none; /* Hidden on desktop */
  justify-content: space-around;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 6px;
  background: rgba(20, 24, 53, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn-Pending.active { border-bottom: 2px solid var(--status-pending-text); color: var(--status-pending-text) !important; }
.tab-btn-In-Progress.active { border-bottom: 2px solid var(--status-inprogress-text); color: var(--status-inprogress-text) !important; }
.tab-btn-Completed.active { border-bottom: 2px solid var(--status-completed-text); color: var(--status-completed-text) !important; }
.tab-btn-Closed.active { border-bottom: 2px solid var(--status-closed-text); color: var(--status-closed-text) !important; }

/* Responsive Media Queries */
@media (max-width: 768px) {
  .app-container {
    padding: 12px;
  }
  
  .top-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
  }
  
  .logo-section {
    justify-content: center;
  }
  
  .header-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  
  .info-ticker {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  
  .ticker-item {
    justify-content: center;
    width: 100%;
  }
  
  .role-switcher-container {
    justify-content: space-between;
    width: 100%;
  }
  
  .role-switcher-select {
    flex-grow: 1;
    max-width: none;
    text-align: center;
  }
  
  /* Supervisor View Mobile adjustments */
  .supervisor-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .live-map-panel {
    height: 300px;
  }
  
  .officers-panel {
    max-height: 350px;
  }
  
  .admin-tasks-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .master-table th:nth-child(3),
  .master-table td:nth-child(3),
  .master-table th:nth-child(5),
  .master-table td:nth-child(5),
  .master-table th:nth-child(6),
  .master-table td:nth-child(6) {
    display: none; /* Hide secondary detail columns on small mobile displays */
  }
  
  /* Officer View Mobile adjustments */
  .officer-portal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .active-task-panel {
    position: relative;
    top: 0;
    max-height: none;
    padding: 16px;
  }
  
  .kanban-tabs {
    display: flex; /* Show tabs on mobile screen sizes */
  }
  
  /* Toggle column visibility based on active tab state on mobile */
  .kanban-column {
    display: none !important;
  }
  
  .kanban-column.active-tab-column {
    display: flex !important;
    animation: slideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

