.simulation-panel {
  position: absolute;
  top: 100px;
  left: 20px; /* Moved to Left (under FAB) */
  width: 260px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  z-index: 500;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s;
}

.simulation-panel:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.sim-header {
  font-weight: 700;
  color: var(--danger-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.sim-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sim-btn {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.75rem;
}
.start {
  background: #dcfce7;
  color: #166534;
}
.stop {
  background: #fee2e2;
  color: #991b1b;
}

/* Dark Mode Simulation Panel */
[data-theme="dark"] .simulation-panel {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .simulation-panel:hover {
  background: rgba(15, 23, 42, 0.95);
}
[data-theme="dark"] .sim-header {
  color: #fb7185; /* Light Rose */
}
[data-theme="dark"] .sim-btn.start {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
[data-theme="dark"] .sim-btn.stop {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* =========================================
   POLICE PATROL WIDGET (Modern & Dark Mode)
   ========================================= */
.police-widget-container {
  position: fixed;
  top: 90px;
  right: 80px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); /* Stronger blur */
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 18px 10px 12px;
  border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05); /* Soft border ring */
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  z-index: 2000; /* High z-index */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pw-icon-box {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.pw-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.pw-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.pw-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.pw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.pw-dot.status-active {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.pw-dot.status-loading {
  background: #f59e0b;
  animation: ping 1.5s infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* --- Dark Mode for Police Widget --- */
[data-theme="dark"] .police-widget-container {
  background: rgba(15, 23, 42, 0.85); /* Darker Slate */
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pw-icon-box {
  background: rgba(30, 41, 59, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .pw-icon-box .pw-icon {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

[data-theme="dark"] .pw-title {
  color: #f8fafc;
}

[data-theme="dark"] .pw-subtitle {
  color: #cbd5e1;
}

[data-theme="dark"] .pw-dot.status-active {
  background: #34d399; /* Neon Green */
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}
