/* 
  GLOBOSEG v2 — Premium Dark/Glassmorphism Design System 
  Professional Security Architecture Interface
*/

:root {
  --bg-main: #0a0b10;
  --bg-card: rgba(23, 25, 35, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --accent: #3182ce;
  --accent-light: #63b3ed;
  --success: #38a169;
  --warning: #d69e2e;
  --danger: #e53e3e;
  --text-main: #f7fafc;
  --text-muted: #a0aec0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --glass-blur: blur(12px);
}

/* Professional Neon Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 11, 16, 0.5);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent);
}
::-webkit-scrollbar-thumb:hover {
  background: #fff;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% -20%, #1a202c 0%, #0a0b10 100%);
  min-height: 100vh;
}

/* ===== LAYOUT ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Clock in Topbar */
.clock-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Inter', sans-serif;
  margin-left: 20px;
}

.clock-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 12px;
}

.clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  text-shadow: 0 0 10px rgba(99, 179, 237, 0.3);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.logo span { 
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent);
}

nav { display: flex; gap: 8px; }
nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 16px;
  border-radius: 8px;
  position: relative;
}
nav a:hover { 
  color: var(--text-main); 
  background: rgba(255, 255, 255, 0.05);
}
nav a.active {
  color: var(--text-main);
  background: rgba(49, 130, 206, 0.15);
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 -2px 10px var(--accent);
  border-radius: 4px 4px 0 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title .icon { color: var(--accent); }

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

.stat-card {
  background: linear-gradient(180deg, rgba(23, 25, 35, 0.8) 0%, rgba(15, 17, 26, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.stat-card:hover { 
  transform: translateY(-4px); 
  border-color: var(--accent); 
  box-shadow: 0 10px 30px rgba(49, 130, 206, 0.15);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.icon-blue { background: rgba(49, 130, 206, 0.15); color: #4299e1; }
.icon-green { background: rgba(56, 161, 105, 0.15); color: #48bb78; }
.icon-orange { background: rgba(221, 107, 32, 0.15); color: #ed8936; }
.icon-purple { background: rgba(128, 90, 213, 0.15); color: #9f7aea; }

.stat-info .value { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.stat-info .label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Hourly Chart */
.chart-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  margin-top: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  border-radius: 8px;
}
.bar-item {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(49, 130, 206, 0.1) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.5s ease;
  min-height: 2px;
}
.bar-item:hover { filter: brightness(1.3); }
.bar-item:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== CAMERA GRID (PREMIUM) ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }

.camera-card-premium {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.camera-card-premium:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

.camera-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.camera-card-premium:hover .camera-thumb { opacity: 0.8; }

.camera-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,11,16,1) 0%, rgba(10,11,16,0.2) 60%, rgba(10,11,16,0.1) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.camera-status-dot {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.camera-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.camera-info p { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }

.camera-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}
.camera-card-premium:hover .camera-actions { opacity: 1; transform: translateY(0); }

/* ===== EVENT FEED ===== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.event-card-v2 {
  background: linear-gradient(145deg, rgba(23, 25, 35, 0.6) 0%, rgba(15, 17, 26, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.event-card-v2:hover { 
  border-color: var(--accent); 
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(49, 130, 206, 0.2);
}

.event-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #000;
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tag-face, .tag-plate {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.tag-face { background: rgba(66, 153, 225, 0.4); color: #fff; }
.tag-plate { background: rgba(237, 137, 54, 0.4); color: #fff; }

/* ===== COMPONENTS ===== */
.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-info { background: rgba(66, 153, 225, 0.1); color: #63b3ed; }
.badge-success { background: rgba(72, 187, 120, 0.1); color: #68d391; }
.badge-danger { background: rgba(245, 101, 101, 0.1); color: #fc8181; }
.badge-warning { background: rgba(237, 137, 54, 0.1); color: #f6ad55; }

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, #2b6cb0 100%);
  color: white; 
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5); 
  transform: translateY(-2px);
}

.btn-outline { 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid var(--border); 
  color: var(--text-main); 
}
.btn-outline:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(255, 255, 255, 0.2); 
  transform: translateY(-2px);
}

.btn-danger { 
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.2) 0%, rgba(229, 62, 62, 0.1) 100%);
  color: #fc8181; 
  border: 1px solid rgba(229, 62, 62, 0.3); 
}
.btn-danger:hover { 
  background: linear-gradient(135deg, var(--danger) 0%, #c53030 100%);
  color: white; 
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
  transform: translateY(-2px);
}
.btn-sm { padding: 6px 14px; font-size: 0.75rem; }

/* DUBAI ELITE ACTION BUTTONS */
.btn-dubai-action {
  background-color: var(--accent) !important;
  background: linear-gradient(135deg, var(--accent) 0%, #1e4e8c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  font-size: 0.75rem !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
}

.btn-dubai-action::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: -100% !important;
  width: 100% !important; height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
  transition: all 0.6s ease !important;
}

.btn-dubai-action:hover {
  transform: translateY(-4px) scale(1.02) !important;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%) !important;
  box-shadow: 0 15px 30px rgba(49, 130, 206, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-dubai-action:hover::before {
  left: 100% !important;
}

.btn-dubai-action:active {
  transform: translateY(-1px) scale(0.98) !important;
}

.btn-dubai-action i {
  font-size: 1rem !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)) !important;
}

.filter-bar {
  background: linear-gradient(145deg, rgba(23, 25, 35, 0.5) 0%, rgba(15, 17, 26, 0.7) 100%);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

input, select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
input:focus, select:focus { 
  border-color: var(--accent); 
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.25);
  outline: none; 
}

table { 
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0; 
  border-radius: var(--radius); 
  overflow: hidden; 
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
th { 
  text-align: left; 
  padding: 16px; 
  background: rgba(0,0,0,0.4); 
  color: var(--text-muted); 
  font-size: 0.75rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  border-bottom: 1px solid var(--border); 
}
td { 
  padding: 16px; 
  border-bottom: 1px solid rgba(255,255,255,0.02); 
  font-size: 0.9rem; 
  background: rgba(23, 25, 35, 0.3);
  transition: background 0.2s; 
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.04); }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-bg.active { display: flex; animation: fadeInModal 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal {
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  background-image: linear-gradient(145deg, rgba(30, 34, 45, 0.8) 0%, rgba(10, 11, 16, 0.95) 100%);
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.modal h3 { 
  font-size: 1.5rem; 
  margin-bottom: 30px; 
  font-weight: 800; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Modal Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.form-group input, 
.form-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 10px;
}
.form-group input:focus, 
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}
.modal-actions .btn {
  padding: 10px 24px;
}

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-weight: 600;
}
.page-btn.active { 
  background: var(--accent); 
  color: white; 
  border-color: var(--accent); 
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}
.page-btn:hover:not(.active) { 
  border-color: var(--accent-light); 
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== MOBILE NAVIGATION & TOPBAR ===== */
@media (max-width: 768px) {
  .topbar { 
    padding: 12px 16px; 
    flex-direction: column; 
    align-items: flex-start;
    gap: 16px; 
  }
  nav { 
    width: 100%; 
    gap: 20px; 
    overflow-x: auto; 
    white-space: nowrap; 
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  nav::-webkit-scrollbar { display: none; } /* Clean look */
  nav a { font-size: 0.85rem; }
}

/* ===== GRID SYSTEM (RESPONSIVE) ===== */
@media (max-width: 1280px) {
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

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

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-3, .event-grid { grid-template-columns: 1fr; }
  .container { padding: 16px; }
  .section-title { font-size: 1.3rem; }
  .stat-card { padding: 16px; gap: 12px; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .stat-info .value { font-size: 1.5rem; }
}

/* ===== FORMS & FILTERS (MOBILE) ===== */
@media (max-width: 768px) {
  .filter-bar { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 16px; 
    padding: 16px;
  }
  .filter-group { width: 100%; }
  .filter-group select, .filter-group input { width: 100%; }
  .filter-bar .btn { width: 100%; justify-content: center; }
}

/* ===== MODALS (MOBILE) ===== */
@media (max-width: 480px) {
  .modal { 
    padding: 20px; 
    width: 95%; 
    max-height: 90vh; 
    overflow-y: auto; 
    border-radius: 16px;
  }
  .modal h3 { font-size: 1.2rem; margin-bottom: 20px; }
}

/* ===== TABLES (MOBILE SCROLL) ===== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
table { min-width: 600px; } /* Ensures table content doesn't squeeze too much */

/* UTILITIES */
img { max-width: 100%; height: auto; }

/* ===== FACE CARDS (PREMIUM) ===== */
.face-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.face-card-premium {
  background: linear-gradient(145deg, rgba(23, 25, 35, 0.8) 0%, rgba(15, 17, 26, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.face-card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(49, 130, 206, 0.15);
}

.face-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.4s;
}

.face-card-premium.wanted::before {
  background: var(--danger);
  opacity: 0.15;
}

.face-card-premium:hover::before {
  opacity: 0.3;
}
.face-card-premium.wanted:hover::before {
  opacity: 0.4;
}

.face-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-main);
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 5px var(--border);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.face-card-premium:hover .face-avatar {
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 6px var(--accent);
}

.face-card-premium.wanted:hover .face-avatar {
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 6px var(--danger);
}

.face-info {
  text-align: center;
  width: 100%;
}

.face-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.5px;
}

.face-actions {
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
  margin-top: 20px;
}

.face-card-premium:hover .face-actions {
  opacity: 1;
  transform: translateY(0);
}

.face-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 10px;
}

/* ===== RECENT ACTIVITY CARDS (COMPACT NOC STYLE) ===== */
.recent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-activity-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  height: 74px; /* INCREASED HEIGHT */
  min-height: 74px;
}

.recent-activity-card:hover {
  background: rgba(49, 130, 206, 0.05);
  border-color: var(--accent-light);
}

.recent-activity-card.type-wanted { border-left-color: var(--danger); }
.recent-activity-card.type-wanted:hover { background: rgba(229, 62, 62, 0.05); }

.ra-image {
  position: relative;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  flex: 0 0 50px !important;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ra-image img {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: cover !important;
  display: block !important;
}

.ra-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.ra-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ra-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ra-time {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-family: monospace;
}

.ra-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
}

.ra-metadata .badge {
  font-size: 0.60rem;
  padding: 2px 4px;
  border-radius: 4px;
}

/* ===== DUBAI SMART CITY EVOLUTION (ULTRA-PREMIUM) ===== */
.player-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1700px;
  margin: 0 auto;
  padding: 30px 60px;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(49, 130, 206, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(229, 62, 62, 0.03) 0%, transparent 30%);
}

.player-header {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(23, 25, 35, 0.8) 0%, rgba(15, 17, 26, 0.95) 100%);
  padding: 24px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.player-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.player-header-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(to bottom, #fff 0%, #a0aec0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* Telemetry Labels */
.telemetry-group {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.telemetry-item {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  background: rgba(49, 130, 206, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(49, 130, 206, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-indicator {
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0,0,0,0.4);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.player-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

.player-video-canvas {
  background: #050505;
  border-radius: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* Cyber Frame Corners */
.player-video-canvas::before, .player-video-canvas::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  pointer-events: none;
  z-index: 5;
}

.player-video-canvas::before {
  top: 20px; left: 20px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.4;
}

.player-video-canvas::after {
  bottom: 20px; right: 20px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0.4;
}

.scanning-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent);
  opacity: 0;
  z-index: 4;
  animation: scanning 8s infinite linear;
}

@keyframes scanning {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.player-console { gap: 24px; }

.console-card {
  background: linear-gradient(165deg, rgba(30, 34, 45, 0.6) 0%, rgba(10, 11, 16, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 28px;
  border-radius: 20px;
}

.config-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-radius: 12px;
}

.config-item:hover { 
  background: rgba(49, 130, 206, 0.12);
  transform: translateX(5px);
}

.config-item label { color: var(--text-main); font-weight: 600; }

.events-list-container {
  height: auto;
  max-height: 600px;
}

/* Scrollbar Custom Elite */
.events-feed-scroll::-webkit-scrollbar { width: 4px; }
.events-feed-scroll::-webkit-scrollbar-track { background: transparent; }
.events-feed-scroll::-webkit-scrollbar-thumb { 
  background: rgba(255,255,255,0.05); 
  border-radius: 10px; 
}
.events-feed-scroll:hover::-webkit-scrollbar-thumb { background: var(--accent); }

/* Switch Cyber Dubai Style */
.slider {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.slider:before {
  background: linear-gradient(to bottom, #fff 0%, #cbd5e0 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(255,255,255,0.2);
}

input:checked + .slider {
  background: linear-gradient(90deg, #2b6cb0 0%, #3182ce 100%);
  box-shadow: 0 0 15px rgba(49, 130, 206, 0.3);
}

/* HEARTBEAT ANIMATION */
.hb-indicator {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  opacity: 0.5;
  animation: hb 1.5s infinite;
}

@keyframes hb {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.5; }
}


.ra-confidence {
  color: var(--text-muted);
  font-weight: 500;
}

.ra-confidence.low { color: var(--warning); }
.ra-confidence.high { color: var(--success); }

/* ===== SCANNER HUD & ANIMATIONS ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.discovery-hud {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.scan-item {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 15px; 
  border-bottom: 1px solid var(--border); 
  background: rgba(255,255,255,0.02); 
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.scan-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
  transform: translateX(5px);
}

.scan-ip {
  font-weight: 700; 
  font-family: 'JetBrains Mono', monospace; 
  color: var(--accent-light);
  font-size: 1.1rem;
}

.scan-vendor {
  font-size: 0.8rem; 
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
/* ===== DUBAI STANDARD — CAMERA CARDS (ULTRA PREMIUM) ===== */
.camera-card-dubai {
  position: relative;
  background: rgba(10, 11, 16, 0.4);
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.camera-card-dubai:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(1deg);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 30px rgba(49, 130, 206, 0.2);
}

.card-thumb-area {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.card-thumb-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.8;
}

.camera-card-dubai:hover .card-thumb-area img {
  transform: scale(1.1);
  opacity: 1;
}

.play-overlay-dubai {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 20;
  cursor: pointer;
}

.camera-card-dubai:hover .play-overlay-dubai {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.play-btn-circle {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-overlay-dubai:hover .play-btn-circle {
  transform: scale(1);
  background: var(--accent);
  border-color: #fff;
  box-shadow: 0 0 50px rgba(49, 130, 206, 0.8);
}

.card-status-pill {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 15;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-online .card-status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #68d391;
  border-radius: 50%;
  box-shadow: 0 0 10px #68d391;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(104, 211, 145, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 211, 145, 0); }
}

.status-online .card-status-pill { background: rgba(72, 187, 120, 0.15); color: #68d391; border-color: rgba(104, 211, 145, 0.3); }
.status-offline .card-status-pill { background: rgba(245, 101, 101, 0.15); color: #fc8181; border-color: rgba(252, 129, 129, 0.3); }

.card-content-dubai {
  padding: 22px;
  flex: 1;
}

.card-content-dubai h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  text-transform: capitalize;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card-location-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.card-location-meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-location-meta i {
  color: var(--accent);
  width: 14px;
}

.card-footer-dubai {
  padding: 15px 22px;
  background: rgba(10, 11, 16, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dubai-btn-sm {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.dubai-btn-sm:hover {
  background: var(--accent);
  border-color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(49, 130, 206, 0.4);
}

.dubai-btn-sm.delete:hover {
  background: var(--danger);
  border-color: #fff;
  box-shadow: 0 10px 20px rgba(229, 62, 62, 0.4);
}

.dubai-btn-sm.delete:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* Compact Intelligence Feed */
.event-mini-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.event-mini-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  transform: translateX(-5px);
}

.event-mini-card.active {
  background: rgba(49, 130, 206, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(49, 130, 206, 0.2);
}

.mini-thumb {
  width: 60px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mini-info { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.mini-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mini-label { font-size: 0.75rem; font-weight: 800; color: #fff; }
.mini-time { font-size: 0.65rem; color: #718096; }
.mini-meta { display: flex; align-items: center; gap: 8px; }

.mini-meta .badge {
  padding: 2px 6px;
  font-size: 0.6rem;
}

/* Status Glow States — Dubai v3 NOC Intelligence */
.status-online {
  border-bottom: 3px solid #38a169 !important;
  box-shadow: 0 10px 40px rgba(56, 161, 105, 0.15);
}

.status-connecting {
  border-bottom: 3px solid #3182ce !important;
  box-shadow: 0 10px 40px rgba(49, 130, 206, 0.2);
  animation: glow-blue 2s infinite;
}

.status-error {
  border-bottom: 3px solid #e53e3e !important;
  box-shadow: 0 10px 40px rgba(229, 62, 62, 0.2);
}

.status-offline {
  border-bottom: 3px solid #4a5568 !important;
  opacity: 0.8;
}

@keyframes glow-blue {
  0% { box-shadow: 0 0 10px rgba(49, 130, 206, 0.2); }
  50% { box-shadow: 0 0 30px rgba(49, 130, 206, 0.5); }
  100% { box-shadow: 0 0 10px rgba(49, 130, 206, 0.2); }
}

.status-error .card-thumb-area img {
  filter: grayscale(1) contrast(1.2);
  opacity: 0.5;
}

.status-connecting .card-thumb-area::after {
  content: '\f2f1';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  animation: spin 2s infinite linear;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 5;
}

/* AI Indicator — NOC Style */
.ai-indicator-dubai {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.ai-indicator-dubai .ai-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a5568;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.ai-indicator-dubai.active .ai-led {
  background: #3182ce;
  box-shadow: 0 0 10px #3182ce, 0 0 20px rgba(49, 130, 206, 0.5);
  animation: hb 2s infinite;
}

.ai-indicator-dubai i {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-indicator-dubai.active i {
  color: var(--accent);
}

.ai-indicator-dubai span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.ai-indicator-dubai.active span {
  color: #fff;
}

/* Scrollbar Refinement — Intelligence Feed focus */
#events-feed {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-noc) rgba(0,0,0,0.2);
}
#events-feed::-webkit-scrollbar { width: 4px; }
#events-feed::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
#events-feed::-webkit-scrollbar-thumb { 
    background: var(--accent-noc); 
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== GLOBOSEG V2 FILTERS (DUBAI STYLE) ===== */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-shrink: 0;
  overflow-x: auto;
  padding: 5px 0;
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-pill i { font-size: 0.8rem; }

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

.sidebar-filters {
  margin-bottom: 15px;
  padding: 0 5px;
}

.sidebar-filters .filter-pill {
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.5px;
}
