/* ==========================================================================
   FUTURE-IL POLICE MDT / CAD - ELITE TACTICAL THEME
   Inspired by NoPixel 4.0, Redutzu-MDT, EchoRP & Real Israeli Police CAD Systems
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* FutureIL Management Tool Official Future Dark Theme Tokens */
  --bg: #090b16;
  --bg-deep: #06080e;
  --bg-base: #090b16;
  --surface: #111629;
  --surface-base: #111629;
  --bg-surface: #111629;
  --bg-card: #111629;
  --bg-card-hover: #151b32;
  --bg-card-active: #142b4c;
  
  /* Borders & Highlights */
  --border-subtle: rgba(39, 215, 255, 0.16);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(39, 215, 255, 0.45);
  --border-focus: #27d7ff;
  --line: rgba(39, 215, 255, 0.16);
  --line-strong: rgba(39, 215, 255, 0.38);

  /* Accents */
  --accent: #27d7ff;
  --cyan: #27d7ff;
  --police-blue: #1d4ed8;
  --police-blue-light: #38bdf8;
  --police-cyan: #27d7ff;
  --police-cyan-bright: #00e5ff;
  --secondaryAccent: #8b5cf6;
  --purple-accent: #8b5cf6;
  --police-gold: #f59e0b;
  --danger-crimson: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);
  --success-green: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);

  /* Design Standards from management.futureil.net */
  --ux-gap: 16px;
  --ux-radius: 14px;
  --ux-control-height: 42px;

  /* Text & Typography */
  --text-primary: #F2F7FC;
  --text-secondary: #9AABBC;
  --text-muted: #65788C;
  --text-code: #E2E8F0;

  --font-main: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tactical: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
}

/* Subtle Tactical Grid / Scanline Backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--police-blue-light);
}

/* ==========================================================================
   TOP TACTICAL HEADER (MDT Terminal Bar)
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  height: 70px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crest-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(10, 14, 23, 0.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  color: var(--police-blue-light);
  font-size: 22px;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge-tag {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  color: #000;
  background: var(--police-blue-light);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-family: var(--font-tactical);
  font-size: 12px;
  color: var(--police-gold);
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Center Live Radio Frequency Ticker */
.radio-ticker-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 22, 36, 0.7);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 30px;
}

.radio-channel-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--police-cyan);
}

.radio-channel-badge i {
  font-size: 11px;
  animation: pulse-radio 2s infinite;
}

@keyframes pulse-radio {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.radio-feed-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Duty Status Dropdown Pill */
.duty-status-selector {
  display: flex;
  align-items: center;
  background: rgba(20, 28, 46, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 10px;
  gap: 8px;
}

.duty-status-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-tactical);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.duty-status-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Officer Info Card */
.officer-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 28, 46, 0.8);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 8px;
}

.officer-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--police-blue-light);
}

.officer-details {
  display: flex;
  flex-direction: column;
}

.officer-name-tag {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-tactical);
  letter-spacing: 0.3px;
}

.officer-role-tag {
  font-size: 11px;
  color: var(--text-muted);
}

/* 10-99 Panic Button */
.panic-btn {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border: 1px solid #F87171;
  color: #fff;
  font-family: var(--font-tactical);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px var(--danger-glow);
  transition: all 0.2s ease;
  animation: pulse-panic-subtle 2.5s infinite;
}

.panic-btn:hover {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
  transform: translateY(-1px);
}

@keyframes pulse-panic-subtle {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.65); }
}

/* Military Digital Clock */
.digital-clock-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  background: rgba(16, 22, 36, 0.9);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: 8px;
}

.clock-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--police-blue-light);
  letter-spacing: 1px;
}

.clock-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   APP WORKSPACE LAYOUT
   ========================================================================== */
.app-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 70px);
  position: relative;
  z-index: 10;
}

/* Tactical Sidebar */
.sidebar {
  width: 270px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 6px;
  flex-shrink: 0;
}

.nav-category {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  padding: 10px 14px 4px 14px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
}

.nav-btn .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-btn:hover {
  background: rgba(20, 28, 46, 0.7);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.15);
}

.nav-btn:hover i {
  color: var(--police-blue-light);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25) 0%, rgba(16, 22, 36, 0.4) 100%);
  color: #fff;
  border-color: var(--border-glow);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.nav-btn.active i {
  color: var(--police-blue-light);
}

.nav-counter-badge {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 800;
  background: var(--danger-crimson);
  color: #fff;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.nav-counter-badge.gold {
  background: var(--police-gold);
  color: #000;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.nav-counter-badge.blue {
  background: var(--police-blue);
  color: #fff;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* Sidebar Footer (Server Sync Badge) */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 22, 36, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Main Content Workspace */
.main-view {
  flex: 1;
  padding: 24px 30px;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(16, 22, 36, 0.4) 0%, transparent 60%);
}

.page-tab {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

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

/* Section Page Header */
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--police-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.page-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Common Button Styles */
.btn {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--police-blue) 0%, #1D4ED8 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  border-color: rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, var(--police-blue) 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(26, 36, 59, 0.8);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(32, 45, 74, 0.95);
  border-color: var(--police-blue-light);
}

.btn-danger {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border-color: #EF4444;
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.55);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #10B981;
  color: #fff;
}

.btn-success:hover {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ==========================================================================
   METRIC STATS CARDS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--police-blue);
}

.stat-card.alert::after { background: var(--danger-crimson); }
.stat-card.gold::after { background: var(--police-gold); }
.stat-card.green::after { background: var(--success-green); }
.stat-card.purple::after { background: var(--purple-accent); }

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-icon {
  font-size: 18px;
  color: var(--text-muted);
}

.stat-val {
  font-family: var(--font-tactical);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.stat-card.alert .stat-val { color: var(--danger-crimson); }
.stat-card.gold .stat-val { color: var(--police-gold); }
.stat-card.green .stat-val { color: var(--success-green); }

/* ==========================================================================
   CAD DISPATCH & LIVE 911 CALLS VIEW
   ========================================================================== */
.dispatch-split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.dispatch-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title i {
  color: var(--police-blue-light);
}

/* Call Feed Item Card */
.call-item-card {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
  position: relative;
}

.call-item-card:hover {
  border-color: var(--border-glow);
  background: rgba(16, 22, 36, 0.9);
}

.call-item-card.code-3 {
  border-right: 4px solid var(--danger-crimson);
}
.call-item-card.code-2 {
  border-right: 4px solid var(--police-gold);
}

.call-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.call-code-badge {
  font-family: var(--font-tactical);
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.call-code-badge.red {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-crimson);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.call-code-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--police-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.call-time-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.call-location-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--police-blue-light);
}

.call-desc-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.call-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.call-units-tag-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.unit-chip {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--police-blue-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Active Units Table */
.units-table {
  width: 100%;
  border-collapse: collapse;
}

.units-table th {
  text-align: right;
  font-size: 12px;
  font-family: var(--font-tactical);
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.units-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.unit-status-pill {
  font-family: var(--font-tactical);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.unit-status-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.unit-status-pill.orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--police-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.unit-status-pill.gray {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.35);
}

/* ==========================================================================
   CITIZEN MASTER DOSSIER VIEW
   ========================================================================== */
.search-bar-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

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

.search-input-wrap i {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 16px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 48px 13px 18px;
  font-family: var(--font-main);
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: var(--bg-card-hover);
}

/* Dossier Layout (Left mugshot / Right details) */
.dossier-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
}

.dossier-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

/* Mugshot Frame */
.mugshot-container {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border-glow);
  background: #000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

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

/* Tactical Height Scale on Mugshot */
.mugshot-overlay {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 189, 248, 0.2);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 90%, rgba(0, 0, 0, 0.8) 100%);
}

.mugshot-change-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--police-blue-light);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.dossier-id-badge {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.dossier-fullname {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.dossier-citizenid {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--police-blue-light);
  margin-top: 2px;
}

/* Bio Spec Grid */
.bio-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.bio-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bio-key {
  color: var(--text-muted);
}

.bio-val {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-tactical);
}

/* Quick Actions in Dossier */
.dossier-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* Dossier Main Content Area */
.dossier-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.card-title i {
  color: var(--police-blue-light);
}

/* Licenses Grid with Police Stamps */
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.license-box {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  transition: all 0.2s;
}

.license-box:hover {
  border-color: var(--border-glow);
}

.license-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Real Israeli Police License Stamps */
.police-stamp {
  font-family: var(--font-tactical);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transform: rotate(-3deg);
}

.police-stamp.valid {
  color: var(--success-green);
  border: 2px solid var(--success-green);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 10px var(--success-glow);
}

.police-stamp.revoked {
  color: var(--danger-crimson);
  border: 2px dashed var(--danger-crimson);
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 10px var(--danger-glow);
}

.license-toggle-btn {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.license-toggle-btn:hover {
  background: var(--police-blue);
  color: #fff;
}

/* Tags & Badges Area */
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--police-blue-light);
  padding: 4px 10px;
  border-radius: 20px;
}

.tag-badge.danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger-crimson);
}

/* Vehicles & Properties in Dossier */
.item-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.interactive-car-card {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.interactive-car-card:hover {
  border-color: var(--police-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Real Israeli License Plate */
.il-plate {
  display: inline-flex;
  align-items: center;
  background: #FFCC00;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-weight: 900;
  color: #000;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.il-plate-flag {
  background: #0038B8;
  color: #fff;
  padding: 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  line-height: 1;
}

.il-plate-num {
  padding: 3px 10px;
  font-size: 15px;
}

/* Criminal History Ledger */
.criminal-record-item {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.criminal-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.criminal-record-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.charges-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.charge-badge {
  font-size: 12px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 2px 8px;
  border-radius: 4px;
}

.penalties-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-tactical);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

.penalties-row span {
  color: var(--police-gold);
}

/* ==========================================================================
   PENAL CODE CATALOG & CALCULATOR
   ========================================================================== */
.penal-categories-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.penal-category-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.penal-category-btn:hover {
  border-color: var(--police-blue-light);
  color: #fff;
}

.penal-category-btn.active {
  background: var(--police-blue);
  border-color: var(--police-blue-light);
  color: #fff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.penal-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.penal-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.penal-item-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.penal-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.penal-id-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--police-blue-light);
}

.penal-item-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.penal-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.penal-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-tactical);
  font-size: 14px;
  font-weight: 700;
}

.penal-meta-fine {
  color: var(--police-gold);
}

.penal-meta-prison {
  color: var(--danger-crimson);
}

/* ==========================================================================
   WARRANTS & BOLOS BOARDS
   ========================================================================== */
.warrants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.warrant-card {
  background: linear-gradient(135deg, rgba(20, 16, 24, 0.95) 0%, rgba(30, 18, 26, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
  position: relative;
  overflow: hidden;
}

.warrant-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--danger-crimson);
  box-shadow: 0 0 10px var(--danger-crimson);
}

.warrant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.warrant-badge-tag {
  font-family: var(--font-tactical);
  font-size: 12px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-crimson);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 3px 10px;
  border-radius: 4px;
}

.warrant-target-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.warrant-target-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--danger-crimson);
}

.warrant-target-info {
  display: flex;
  flex-direction: column;
}

.warrant-target-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.warrant-target-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.warrant-reason-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: #FCA5A5;
  line-height: 1.4;
  border-right: 3px solid var(--danger-crimson);
}

/* ==========================================================================
   PERMISSIONS MATRIX TABLE
   ========================================================================== */
.matrix-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

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

.matrix-table th {
  padding: 14px 16px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  background: rgba(10, 14, 23, 0.9);
  color: #fff;
  border-bottom: 2px solid var(--border-glow);
}

.matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

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

/* Custom Checkbox Switch */
.matrix-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-subtle);
  border-radius: 6px;
  background: rgba(10, 14, 23, 0.8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.matrix-checkbox:checked {
  background: var(--police-blue);
  border-color: var(--police-blue-light);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.matrix-checkbox:checked::after {
  content: "✔";
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; border-left: none; border-bottom: 1px solid var(--border-subtle); }
  .dispatch-split-grid { grid-template-columns: 1fr; }
  .dossier-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ADVANCED MODULES: EVIDENCE LOCKER, CCTV, ANNOUNCEMENTS & FTO
   ========================================================================== */

/* Evidence Locker */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.evidence-card:hover {
  transform: translateY(-3px);
  border-color: var(--police-blue-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.evidence-img-container {
  width: 100%;
  height: 180px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.evidence-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.evidence-card:hover .evidence-img {
  transform: scale(1.05);
}

.evidence-tag-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--police-blue-light);
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.evidence-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.evidence-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.evidence-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* CCTV & Surveillance Grid */
.cctv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.cctv-card {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.cctv-card:hover {
  border-color: var(--danger-crimson);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.cctv-feed-screen {
  width: 100%;
  height: 190px;
  position: relative;
}

.cctv-feed-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

/* CCTV Scanlines & REC indicator */
.cctv-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.cctv-header-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  z-index: 2;
}

.cctv-rec-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger-crimson);
  font-weight: 800;
  animation: blink 1.2s infinite;
}

.cctv-info-bar {
  padding: 12px 14px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cctv-cam-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.cctv-cam-loc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Department Announcements */
.announcement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.announcement-card.urgent {
  border-color: rgba(239, 68, 68, 0.4);
}

.announcement-card.urgent::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--danger-crimson);
}

.announcement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announcement-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* FTO Evaluation Metric */
.fto-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fto-score-bar-wrap {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.fto-score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--police-blue) 0%, var(--police-cyan) 100%);
}

/* Tactical Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.tactical-toast {
  background: rgba(16, 22, 36, 0.95);
  border: 1px solid var(--border-glow);
  border-right: 4px solid var(--police-blue-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  pointer-events: auto;
  animation: slideInToast 0.3s ease-out;
  min-width: 280px;
  backdrop-filter: blur(8px);
}

.tactical-toast.alert {
  border-right-color: var(--danger-crimson);
  border-color: rgba(239, 68, 68, 0.5);
}

.tactical-toast.success {
  border-right-color: var(--success-green);
  border-color: rgba(16, 185, 129, 0.5);
}

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

/* ==========================================================================
   MANAGEMENT TOOL LUXURY OBSIDIAN COMPONENTS (MATCHING SERVER STANDARDS)
   ========================================================================== */

/* Top Breadcrumb & User Ribbon */
.mgmt-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 19, 34, 0.6);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-trail .breadcrumb-item {
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.breadcrumb-trail .breadcrumb-item.active {
  color: #fff;
  font-weight: 700;
}
.breadcrumb-trail .breadcrumb-sep {
  color: var(--text-muted);
  font-size: 11px;
}

.mgmt-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar cluster with online indicator */
.avatar-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 26, 46, 0.6);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 30px;
}
.avatar-cluster-icons {
  display: flex;
  align-items: center;
}
.avatar-cluster-icons img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  margin-left: -6px;
}
.cluster-status-text {
  font-size: 11px;
  color: var(--success-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cluster-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
}

/* Notifications pill */
.notifications-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 26, 46, 0.8);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.notifications-pill:hover {
  border-color: var(--border-subtle);
  background: rgba(20, 36, 64, 0.8);
}
.notifications-badge {
  background: var(--danger-crimson);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tactical Radio badge in top bar */
.radio-channel-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 26, 46, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--police-cyan);
  font-weight: 700;
}

/* Hero Title Section */
.mgmt-hero-section {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.mgmt-hero-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, rgba(11, 19, 34, 0.9) 100%);
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--police-cyan);
  font-size: 26px;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.35);
  flex-shrink: 0;
}
.mgmt-hero-text h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.mgmt-hero-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Action Pills Row */
.mgmt-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: rgba(11, 19, 34, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.btn-action-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--police-cyan);
  color: #070C16;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 180, 216, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-action-primary:hover {
  background: var(--police-cyan-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
}
.btn-action-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 26, 46, 0.7);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-pill:hover {
  border-color: var(--border-subtle);
  color: #fff;
  background: rgba(20, 38, 66, 0.8);
}
.btn-action-pill i {
  color: var(--police-cyan);
}
.action-pill-alert {
  margin-right: auto;
  color: var(--police-cyan);
  border-color: rgba(0, 180, 216, 0.3);
  background: rgba(0, 180, 216, 0.08);
}

/* Shift / Selection Bar */
.mgmt-shift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.shift-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  background: rgba(14, 26, 46, 0.6);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}
.segmented-shift-control {
  display: flex;
  align-items: center;
  background: rgba(11, 19, 34, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}
.segmented-shift-btn {
  padding: 9px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  border-bottom: 3px solid transparent;
}
.segmented-shift-btn span.sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}
.segmented-shift-btn.active {
  background: rgba(19, 43, 69, 0.6);
  color: #fff;
  border-bottom-color: var(--police-cyan);
}

/* KPI / Metric 3-Card Grid */
.mgmt-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.mgmt-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.mgmt-kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.mgmt-kpi-score-hero {
  font-size: 52px;
  font-weight: 900;
  font-family: var(--font-tactical);
  color: var(--police-cyan);
  text-align: center;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 0 0 25px rgba(0, 180, 216, 0.4);
}
.mgmt-kpi-score-footer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: auto;
}

/* Progress bars within KPI */
.mgmt-progress-item {
  margin-bottom: 12px;
}
.mgmt-progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.mgmt-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.mgmt-progress-bar-fill {
  height: 100%;
  background: var(--police-cyan);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.6);
}

/* Automated Synchronization Banner */
.mgmt-sync-banner {
  background: rgba(11, 19, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.mgmt-sync-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.mgmt-sync-header i {
  color: var(--police-cyan);
  font-size: 16px;
}
.mgmt-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.mgmt-ribbon-card {
  background: rgba(15, 29, 51, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s;
}
.mgmt-ribbon-card:hover {
  background: rgba(20, 38, 66, 0.8);
  border-color: var(--border-subtle);
}
.mgmt-ribbon-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.mgmt-ribbon-value {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-tactical);
}
.mgmt-ribbon-card.danger-highlight {
  border-color: var(--danger-crimson);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}
.mgmt-ribbon-card.danger-highlight .mgmt-ribbon-value {
  color: var(--danger-crimson);
}

/* Spotlight Card (MVP / Best Officer) */
.mgmt-spotlight-card {
  background: radial-gradient(circle at top left, rgba(0, 180, 216, 0.15) 0%, rgba(15, 29, 51, 0.8) 100%);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.2);
}
.mgmt-spotlight-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mgmt-spotlight-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 2px solid var(--police-cyan);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}
.mgmt-spotlight-meta {
  display: flex;
  flex-direction: column;
}
.mgmt-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--police-gold);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mgmt-spotlight-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.mgmt-spotlight-hours {
  text-align: left;
}
.mgmt-spotlight-hours-val {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-tactical);
  color: var(--police-cyan);
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
  line-height: 1;
}
.mgmt-spotlight-hours-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Management Modal Styles (Image 2) */
.mgmt-modal-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.mgmt-modal-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.mgmt-modal-tab.active {
  color: #fff;
}
.mgmt-modal-tab.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--police-cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--police-cyan);
}
.mgmt-modal-input-card {
  background: rgba(7, 12, 22, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  position: relative;
}
.mgmt-modal-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-main);
  resize: vertical;
  min-height: 70px;
}
.mgmt-modal-btn-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--police-cyan);
  color: #070C16;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
}
.mgmt-item-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 26, 46, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
}
.mgmt-item-chip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mgmt-item-chip-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid var(--police-cyan);
  color: var(--police-cyan);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mgmt-item-chip-info {
  display: flex;
  flex-direction: column;
}
.mgmt-item-chip-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.mgmt-item-chip-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.mgmt-item-chip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

