/* ========== GENERAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f1929 0%, #1a2a4a 100%);
  color: #e0e0e0;
  min-height: 100vh;
}

/* ========== HEADER & NAV ========== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid #00e5ff;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  width: 100%;
  margin: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 32px;
}

.top-bar h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #e0e0e0;
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-item {
  color: #00e5ff;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  border-bottom-color: #00e5ff;
}

/* ========== ALERTS LAYOUT ========== */
.alerts-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 25px;
  padding: 25px 30px;
  min-height: calc(100vh - 100px);
}

.alerts-left,
.alerts-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== ALERT PANELS ========== */
.alert-panel {
  background: rgba(15, 25, 45, 0.8);
  border: 1px solid #00e5ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 229, 255, 0.1);
  transition: all 0.3s ease;
}

.alert-panel:hover {
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 229, 255, 0.15);
}

.alert-panel h2 {
  color: #00e5ff;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* ========== ALERT INFO ========== */
.alert-info {
  background: rgba(0, 229, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 13px;
}

.alert-row:last-child {
  border-bottom: none;
}

.alert-label {
  color: #a0a0a0;
  font-weight: 600;
}

.alert-value {
  color: #e0e0e0;
}

.confidence-bar {
  height: 24px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 4px;
  border: 1px solid #00e5ff;
  width: 150px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.confidence-fill {
  background: linear-gradient(90deg, #00e5ff, #00ff88);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: #0f1929;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ========== BUTTONS ========== */
.alert-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #00e5ff;
  color: #0f1929;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  border: 1px solid #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3), inset 0 0 8px rgba(0, 229, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

/* ========== EVENT TABLE ========== */
.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.event-table th {
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #00e5ff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.event-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  color: #e0e0e0;
}

.event-table tr:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

/* ========== BADGES ========== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.badge.anomalous {
  background: rgba(255, 59, 59, 0.2);
  color: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.4);
}

.badge.suspect {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.badge.compromised {
  background: rgba(255, 59, 59, 0.3);
  color: #ff6666;
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.badge.warning {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.badge.alert {
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* ========== INCIDENT SUMMARY ========== */
.incident-summary {
  background: rgba(255, 59, 59, 0.1);
  border-color: #ff3b3b;
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 59, 59, 0.1);
}

.incident-content {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #ff3b3b;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.2);
}

.incident-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.4));
}

.incident-text {
  font-size: 13px;
}

/* ========== NETWORK VISUALIZATION ========== */
.network-graph {
  width: 100%;
  height: 400px;
  background: rgba(15, 25, 45, 0.8);
  border: 1px solid #00e5ff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 229, 255, 0.1);
}

/* ========== INFO PANEL ========== */
.info-panel {
  background: rgba(15, 25, 45, 0.8);
  border: 1px solid #00e5ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 229, 255, 0.1);
  transition: all 0.3s ease;
}

.info-panel:hover {
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 229, 255, 0.15);
}

.info-content h3 {
  color: #00e5ff;
  font-size: 14px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 13px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  color: #a0a0a0;
}

.info-item .value {
  color: #e0e0e0;
  font-weight: 600;
}

.info-item .value.alert-red {
  color: #ff3b3b;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 59, 59, 0.5);
}

/* ========== BEHAVIOR PANEL ========== */
.behavior-panel {
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid #ffcc00;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 204, 0, 0.1);
  transition: all 0.3s ease;
}

.behavior-panel:hover {
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 204, 0, 0.15);
}

.behavior-panel h3 {
  color: #ffcc00;
  font-size: 14px;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.behavior-panel p {
  color: #a0a0a0;
  font-size: 12px;
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 229, 255, 0.05);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1400px) {
  .alerts-layout {
    grid-template-columns: 1fr;
  }

  .alerts-left,
  .alerts-right {
    order: 1;
  }

  .network-graph {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .alerts-layout {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 15px;
  }

  .alert-panel {
    padding: 15px;
  }

  .event-table {
    font-size: 11px;
  }

  .event-table th,
  .event-table td {
    padding: 8px 5px;
  }
}

@media (max-width: 480px) {
  .alerts-layout {
    padding: 10px;
  }

  .alert-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .btn {
    flex: 1;
  }

  .network-graph {
    height: 250px;
  }
}