/* ========================================
   CYBERPUNK THREAT INTELLIGENCE THEME
   Premium Dark UI - Black/Red/Neon
   AI-Generated Advanced Design
   ======================================== */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* IBM Blue Primary */
  --primary-50: #E8EEFF;
  --primary-100: #C6D6FF;
  --primary-200: #9AB8FF;
  --primary-300: #6D98FF;
  --primary-400: #3C78FF;
  --primary-500: #054ADA;
  --primary-600: #0B4ED1;
  --primary-700: #0039A6;
  --primary-800: #002B7A;
  --primary-900: #001F5B;

  /* IBM Accent */
  --secondary-50: #E6F7FF;
  --secondary-100: #C5E6FF;
  --secondary-200: #A1D6FF;
  --secondary-300: #77B9FF;
  --secondary-400: #4D98FF;
  --secondary-500: #1F7CFF;
  --secondary-600: #1666D9;
  --secondary-700: #104BB0;
  --secondary-800: #0B3A87;
  --secondary-900: #072B63;

  /* Success */
  --success-light: #DFF7FF;
  --success-main: #00A6D7;
  --success-dark: #006A96;

  /* Warning */
  --warning-light: #FFF4D6;
  --warning-main: #FFB800;
  --warning-dark: #B37A00;

  /* Error */
  --error-light: #FFE7E7;
  --error-main: #DA1E28;
  --error-dark: #8B1018;

  /* Dark Theme - IBM Graphite */
  --neutral-0: #090B12;
  --neutral-50: #0F1729;
  --neutral-100: #12192D;
  --neutral-200: #1F2947;
  --neutral-300: #2E3B60;
  --neutral-400: #4B5B84;
  --neutral-500: #7384B1;
  --neutral-600: #A0B1D3;
  --neutral-700: #D3DFF3;
  --neutral-800: #E9EEFB;
  --neutral-900: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.18), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.22), 0 4px 10px -4px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.24), 0 10px 20px -10px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 25px 60px -18px rgba(0, 0, 0, 0.28);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Typography */
  --font-sans: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --font-display: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== BODY & LAYOUT ========== */
body {
  font-family: var(--font-sans);
  background: #0B1224;
  background-image: 
    radial-gradient(at 0% 0%, rgba(5, 74, 218, 0.12) 0px, transparent 45%),
    radial-gradient(at 100% 0%, rgba(16, 122, 255, 0.1) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(8, 123, 186, 0.08) 0px, transparent 40%);
  color: var(--neutral-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Animated Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(5, 74, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 74, 218, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* ========== SIDEBAR ========== */
.sidebar {
  background: linear-gradient(180deg, #0A0A0A 0%, #000000 100%);
  border-right: 1px solid rgba(5, 74, 218, 0.18);
  box-shadow: 
    0 0 40px rgba(5,74,218,0.15),
    inset -1px 0 0 rgba(5,74,218,0.1);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(5,74,218,0.15), transparent);
  pointer-events: none;
}

.sidebar-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--neutral-200);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-600);
  font-family: var(--font-display);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--spacing-xs);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(5,74,218,0.5), transparent);
  transition: width var(--transition-base);
}

.nav-item:hover {
  background: rgba(5,74,218,0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 20px rgba(5, 74, 218, 0.18),
    inset 0 0 20px rgba(5, 74, 218, 0.05);
}

.nav-item:hover::before {
  width: 4px;
}

.nav-item.active,
.nav-active {
  background: linear-gradient(135deg, rgba(5, 74, 218, 0.18), rgba(6,82,210,0.15));
  color: #AEBEFF;
  font-weight: 600;
  border-left: 3px solid #054ADA;
  box-shadow: 
    0 0 20px rgba(5,74,218,0.3),
    inset 0 0 20px rgba(5,74,218,0.1);
  text-shadow: 0 0 10px rgba(5,74,218,0.5);
}

.nav-item.active::before {
  width: 4px;
}

.nav-item .material-symbols-outlined {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 5px currentColor);
}

/* ========== MAIN CONTENT ========== */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

/* Content sections spacing */
.content-section {
  margin-bottom: 2rem;
}

/* ========== HEADER ========== */
.header {
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid rgba(5, 74, 218, 0.18);
  padding: var(--spacing-lg) var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(5,74,218,0.1);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,74,218,0.5), transparent);
}

.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  padding-left: 3rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--neutral-50);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--neutral-0);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.header-search .material-symbols-outlined {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.header-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error-main);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  cursor: pointer;
  transition: all var(--transition-base);
}

.user-menu:hover {
  background: var(--neutral-200);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ========== CARDS ========== */
.card {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(5,74,218,0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(5,74,218,0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5,74,218,0.1), transparent);
  transition: left 0.5s;
}

.card:hover {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(5,74,218,0.3),
    0 0 40px rgba(5,74,218,0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-color: rgba(5,74,218,0.3);
  transform: translateY(-2px);
}

.card:hover::before {
  left: 100%;
}

.card-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-900);
  font-family: var(--font-display);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ========== STATS CARDS ========== */
.stat-card {
  background: var(--neutral-0);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.stat-icon.primary {
  background: var(--primary-100);
  color: var(--primary-600);
}

.stat-icon.secondary {
  background: var(--secondary-100);
  color: var(--secondary-600);
}

.stat-icon.success {
  background: var(--success-light);
  color: var(--success-dark);
}

.stat-icon.warning {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neutral-900);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
}

.stat-change.positive {
  background: var(--success-light);
  color: var(--success-dark);
}

.stat-change.negative {
  background: var(--error-light);
  color: var(--error-dark);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, #054ADA, #0B4ED1);
  color: white;
  box-shadow: 
    0 4px 15px rgba(5,74,218,0.4),
    0 0 20px rgba(5, 74, 218, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(5,74,218,0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6D98FF, #054ADA);
  box-shadow: 
    0 6px 25px rgba(5,74,218,0.6),
    0 0 40px rgba(5,74,218,0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, #1F7CFF, #0E7490);
  color: white;
  box-shadow: 
    0 4px 15px rgba(31,124,255,0.4),
    0 0 20px rgba(31,124,255,0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(31,124,255,0.5);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #22D3EE, #1F7CFF);
  box-shadow: 
    0 6px 25px rgba(31,124,255,0.6),
    0 0 40px rgba(31,124,255,0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10B981, #065F46);
  color: white;
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.4),
    0 0 20px rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.btn-success:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
  box-shadow: 
    0 6px 25px rgba(16, 185, 129, 0.6),
    0 0 40px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.btn-error {
  background: linear-gradient(135deg, #054ADA, #7F1D1D);
  color: white;
  box-shadow: 
    0 4px 15px rgba(5,74,218,0.4),
    0 0 20px rgba(5, 74, 218, 0.18);
  border: 1px solid rgba(5,74,218,0.5);
}

.btn-error:hover {
  background: linear-gradient(135deg, #6D98FF, #054ADA);
  box-shadow: 
    0 6px 25px rgba(5,74,218,0.6),
    0 0 40px rgba(5,74,218,0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(5,74,218,0.5);
  color: #AEBEFF;
  box-shadow: 
    0 0 20px rgba(5, 74, 218, 0.18),
    inset 0 0 20px rgba(5, 74, 218, 0.05);
}

.btn-outline:hover {
  background: rgba(5,74,218,0.1);
  border-color: rgba(5,74,218,0.8);
  box-shadow: 
    0 0 30px rgba(5,74,218,0.4),
    inset 0 0 30px rgba(5,74,218,0.1);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(5,74,218,0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(5,74,218,0.3);
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 1rem;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid rgba(5, 74, 218, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 10, 0.6);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(5,74,218,0.5);
  background: rgba(10, 10, 10, 0.8);
  box-shadow: 
    0 0 20px rgba(5,74,218,0.3),
    inset 0 0 20px rgba(5,74,218,0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-error {
  font-size: 0.75rem;
  color: var(--error-main);
  margin-top: var(--spacing-xs);
}

/* Glass input styling */
.glass-input {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(5, 74, 218, 0.18);
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-base);
}

.glass-input:focus {
  background: rgba(10, 10, 10, 0.8);
  border-color: rgba(5,74,218,0.5);
  box-shadow: 
    0 0 20px rgba(5,74,218,0.3),
    inset 0 0 20px rgba(5,74,218,0.1);
  outline: none;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ========== TABLES ========== */
.table-container {
  background: rgba(10, 10, 10, 0.6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(5,74,218,0.15);
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

thead {
  background: linear-gradient(135deg, rgba(5,74,218,0.15), rgba(6,82,210,0.1));
  border-bottom: 1px solid rgba(5,74,218,0.3);
  position: relative;
}

thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,74,218,0.5), transparent);
}

thead th {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(5,74,218,0.5);
  background: transparent;
}

tbody {
  background: transparent;
}

tbody tr {
  border-bottom: 1px solid rgba(5,74,218,0.08);
  transition: all var(--transition-fast);
  position: relative;
  background: transparent;
}

tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(5, 74, 218, 0.18), transparent);
  transition: width var(--transition-base);
}

tbody tr:hover {
  background: rgba(5, 74, 218, 0.05);
  box-shadow: 
    0 0 20px rgba(5,74,218,0.1),
    inset 0 0 20px rgba(5, 74, 218, 0.05);
}

tbody tr:hover::before {
  width: 4px;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  white-space: normal;
  word-wrap: break-word;
  max-width: 200px;
}

/* Ensure device column shows full name */
tbody td:nth-child(2) {
  min-width: 120px;
  max-width: 200px;
  white-space: normal;
  word-break: break-word;
}

/* Glass card styling for all sections */
.glass-card {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid rgba(5,74,218,0.15);
  backdrop-filter: blur(10px);
}

.glass-card table {
  background: transparent;
}

.glass-card thead {
  background: linear-gradient(135deg, rgba(5,74,218,0.15), rgba(6,82,210,0.1));
}

.glass-card tbody tr {
  background: transparent;
}

.glass-card tbody tr:hover {
  background: rgba(5, 74, 218, 0.05);
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px currentColor;
}

.badge-primary {
  background: linear-gradient(135deg, rgba(5, 74, 218, 0.18), rgba(6,82,210,0.3));
  color: #AEBEFF;
  border: 1px solid rgba(5,74,218,0.4);
  text-shadow: 0 0 10px rgba(5,74,218,0.8);
}

.badge-secondary {
  background: linear-gradient(135deg, rgba(31,124,255,0.2), rgba(14, 116, 144, 0.3));
  color: #67E8F9;
  border: 1px solid rgba(31,124,255,0.4);
  text-shadow: 0 0 10px rgba(31,124,255,0.8);
}

.badge-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.3));
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(146, 64, 14, 0.3));
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.badge-error {
  background: linear-gradient(135deg, rgba(5, 74, 218, 0.18), rgba(127, 29, 29, 0.3));
  color: #AEBEFF;
  border: 1px solid rgba(5,74,218,0.4);
  text-shadow: 0 0 10px rgba(5,74,218,0.8);
}

.badge-neutral {
  background: linear-gradient(135deg, rgba(115, 115, 115, 0.2), rgba(64, 64, 64, 0.3));
  color: #D4D4D4;
  border: 1px solid rgba(115, 115, 115, 0.4);
}

/* ========== STATUS INDICATORS ========== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.online {
  background: #10B981;
  box-shadow: 
    0 0 10px rgba(16, 185, 129, 0.8),
    0 0 20px rgba(16, 185, 129, 0.4),
    0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-dot.online::after {
  background: rgba(16, 185, 129, 0.4);
}

.status-dot.offline {
  background: #737373;
  box-shadow: 
    0 0 10px rgba(115, 115, 115, 0.5),
    0 0 0 2px rgba(115, 115, 115, 0.2);
}

.status-dot.offline::after {
  background: rgba(115, 115, 115, 0.3);
  animation: none;
}

.status-dot.warning {
  background: #F59E0B;
  box-shadow: 
    0 0 10px rgba(245, 158, 11, 0.8),
    0 0 20px rgba(245, 158, 11, 0.4),
    0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-dot.warning::after {
  background: rgba(245, 158, 11, 0.4);
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* ========== MODALS ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.modal {
  background: var(--neutral-0);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  font-family: var(--font-display);
}

.modal-body {
  padding: var(--spacing-xl);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* ========== TOOLTIPS ========== */
.tooltip {
  position: absolute;
  background: var(--neutral-900);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 60;
  box-shadow: var(--shadow-lg);
}

/* ========== PROGRESS BARS ========== */
.progress {
  width: 100%;
  height: 8px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-base) ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn var(--transition-slow) ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========== UTILITY CLASSES ========== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-primary {
  color: var(--primary-600);
}

.text-secondary {
  color: var(--secondary-600);
}

.text-success {
  color: var(--success-main);
}

.text-warning {
  color: var(--warning-main);
}

.text-error {
  color: var(--error-main);
}

.text-neutral {
  color: var(--neutral-600);
}

.bg-primary {
  background: var(--primary-600);
}

.bg-secondary {
  background: var(--secondary-600);
}

.bg-success {
  background: var(--success-main);
}

.bg-warning {
  background: var(--warning-main);
}

.bg-error {
  background: var(--error-main);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.content-section h2 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 20px rgba(5,74,218,0.3);
}

.content-section input,
.content-section select,
.content-section textarea {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(5, 74, 218, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.content-section input:focus,
.content-section select:focus,
.content-section textarea:focus {
  background: rgba(10, 10, 10, 0.8);
  border-color: rgba(5,74,218,0.5);
  box-shadow: 
    0 0 20px rgba(5,74,218,0.3),
    inset 0 0 20px rgba(5,74,218,0.1);
}

.content-section button {
  color: rgba(255, 255, 255, 0.9);
}

/* Override any white backgrounds */
.content-section .glass-card,
.content-section .table-container,
.content-section table,
.content-section thead,
.content-section tbody,
.content-section tr,
.content-section td,
.content-section th {
  background: transparent !important;
}

.content-section .glass-card {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%) !important;
  border: 1px solid rgba(5,74,218,0.15);
}

.content-section thead {
  background: linear-gradient(135deg, rgba(5,74,218,0.15), rgba(6,82,210,0.1)) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .header {
    padding: var(--spacing-md);
  }

  .header-search {
    display: none;
  }

  .stat-card {
    padding: var(--spacing-md);
  }

  .stat-value {
    font-size: 1.5rem;
  }
}


/* ========== DEVICE CARDS ========== */
.device-card {
  background: var(--neutral-0);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.device-card:hover::before {
  opacity: 1;
}

.device-card.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: var(--shadow-md);
}

.device-card.selected::before {
  opacity: 1;
}

.device-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.device-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
  color: var(--primary-600);
  font-size: 1.5rem;
}

.device-card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-900);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.device-card-subtitle {
  font-size: 0.75rem;
  color: var(--neutral-500);
  font-family: var(--font-mono);
}

.device-card-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--neutral-200);
}

.device-card-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.device-card-info-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.device-card-info-value {
  font-size: 0.75rem;
  color: var(--neutral-700);
  font-family: var(--font-mono);
  font-weight: 600;
}

.device-card-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.device-card-action-btn {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--neutral-300);
  background: var(--neutral-0);
  color: var(--neutral-700);
}

.device-card-action-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* ========== THREAT INTELLIGENCE TABLE ========== */
.table-container table tbody tr {
  transition: all var(--transition-fast);
  background: transparent;
}

.table-container table tbody tr:hover {
  background: rgba(5,74,218,0.08);
  transform: translateX(4px);
  box-shadow: 
    -4px 0 0 rgba(5,74,218,0.5),
    0 0 30px rgba(5,74,218,0.15);
}

.table-container table tbody tr.bg-primary-50 {
  background: linear-gradient(90deg, rgba(5,74,218,0.15), rgba(5, 74, 218, 0.05));
  border-left: 4px solid #054ADA;
  box-shadow: 
    0 0 20px rgba(5, 74, 218, 0.18),
    inset 0 0 30px rgba(5,74,218,0.1);
}

.table-container table tbody tr.bg-primary-50:hover {
  background: linear-gradient(90deg, rgba(5, 74, 218, 0.18), rgba(5,74,218,0.08));
  box-shadow: 
    -4px 0 0 rgba(5,74,218,0.8),
    0 0 40px rgba(5,74,218,0.3),
    inset 0 0 40px rgba(5,74,218,0.15);
}

.table-container table tbody td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(5, 74, 218, 0.05);
}

/* Red Team Header Styling */
.card-header[style*="linear-gradient"] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #054ADA 0%, #0B4ED1 100%) !important;
  box-shadow: 
    0 4px 20px rgba(5,74,218,0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.card-header[style*="linear-gradient"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s infinite;
}

.card-header[style*="linear-gradient"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Hover effect for action buttons in table */
.table-container table tbody td button {
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.table-container table tbody td button:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Glowing input fields */
.form-input,
.form-select {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(5, 74, 218, 0.18);
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus {
  background: rgba(10, 10, 10, 0.8);
  border-color: rgba(5,74,218,0.5);
  box-shadow: 
    0 0 20px rgba(5,74,218,0.3),
    inset 0 0 20px rgba(5,74,218,0.1);
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Stat cards with neon glow */
.stat-card {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  border: 1px solid rgba(5,74,218,0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(5,74,218,0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #054ADA, #6D98FF, #054ADA);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(5, 74, 218, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-color: rgba(5,74,218,0.3);
}

/* ========== STATUS PULSE ANIMATION ========== */
@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.status-pulse {
  animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========== CYBERPUNK SCAN LINE EFFECT ========== */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(5,74,218,0.5), transparent);
  pointer-events: none;
  z-index: 9999;
  animation: scanline 8s linear infinite;
  opacity: 0.3;
}

/* ========== GLITCH TEXT EFFECT ========== */
@keyframes glitch {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(5,74,218,0.8),
      0 0 20px rgba(5,74,218,0.5),
      0 0 30px rgba(5,74,218,0.3);
  }
  25% {
    text-shadow: 
      -2px 0 10px rgba(5,74,218,0.8),
      2px 0 20px rgba(31,124,255,0.5),
      0 0 30px rgba(5,74,218,0.3);
  }
  50% {
    text-shadow: 
      2px 0 10px rgba(5,74,218,0.8),
      -2px 0 20px rgba(31,124,255,0.5),
      0 0 30px rgba(5,74,218,0.3);
  }
  75% {
    text-shadow: 
      0 2px 10px rgba(5,74,218,0.8),
      0 -2px 20px rgba(31,124,255,0.5),
      0 0 30px rgba(5,74,218,0.3);
  }
}

/* ========== NEON GLOW ANIMATION ========== */
@keyframes neonGlow {
  0%, 100% {
    box-shadow: 
      0 0 10px rgba(5,74,218,0.5),
      0 0 20px rgba(5,74,218,0.3),
      0 0 30px rgba(5, 74, 218, 0.18),
      inset 0 0 10px rgba(5,74,218,0.1);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(5,74,218,0.8),
      0 0 40px rgba(5,74,218,0.5),
      0 0 60px rgba(5,74,218,0.3),
      inset 0 0 20px rgba(5, 74, 218, 0.18);
  }
}

/* ========== HOLOGRAPHIC EFFECT ========== */
@keyframes holographic {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ========== FLOATING PARTICLES ========== */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-40px) translateX(-10px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.5;
  }
}

/* Add floating particles to body */
.main-content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(5,74,218,0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(5,74,218,0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(5,74,218,0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(5,74,218,0.3), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(5,74,218,0.3), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(5,74,218,0.3), transparent);
  background-size: 200% 200%;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ========== CARD HEADER GLOW ========== */
.card-header {
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5,74,218,0.8), transparent);
  box-shadow: 0 0 10px rgba(5,74,218,0.5);
}

/* ========== ADVANCED SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
  border-left: 1px solid rgba(5,74,218,0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(5,74,218,0.5), rgba(6,82,210,0.5));
  border-radius: var(--radius-full);
  border: 2px solid rgba(10, 10, 10, 0.5);
  box-shadow: 
    0 0 10px rgba(5,74,218,0.3),
    inset 0 0 10px rgba(5, 74, 218, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(5,74,218,0.8), rgba(6,82,210,0.8));
  box-shadow: 
    0 0 20px rgba(5,74,218,0.5),
    inset 0 0 20px rgba(5,74,218,0.3);
}

/* ========== MATERIAL ICONS GLOW ========== */
.material-symbols-outlined {
  filter: drop-shadow(0 0 3px currentColor);
  transition: filter var(--transition-base);
}

.material-symbols-outlined:hover {
  filter: drop-shadow(0 0 8px currentColor);
}

/* ========== PREMIUM LOADING ANIMATION ========== */
@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* ========== TEXT GLOW UTILITIES ========== */
.text-glow-red {
  text-shadow: 
    0 0 10px rgba(5,74,218,0.8),
    0 0 20px rgba(5,74,218,0.5),
    0 0 30px rgba(5,74,218,0.3);
}

.text-glow-cyan {
  text-shadow: 
    0 0 10px rgba(31,124,255,0.8),
    0 0 20px rgba(31,124,255,0.5),
    0 0 30px rgba(31,124,255,0.3);
}

.text-glow-green {
  text-shadow: 
    0 0 10px rgba(16, 185, 129, 0.8),
    0 0 20px rgba(16, 185, 129, 0.5),
    0 0 30px rgba(16, 185, 129, 0.3);
}
