* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
  color: #e0e0e0;
  font-family: "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* ========== HEADER / TOP BAR ========== */
/* HEADER */
.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;
}


/* ========== STATUS INDICATORS INLINE (HEADER) ========== */
.status-inline {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.status-inline .status-item {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
}

.status-inline .status-item.normal {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.1);
}

.status-inline .status-item.suspicious {
  color: #ffcc00;
  border-color: rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.1);
}

.status-inline .status-item.anomaly {
  color: #ff3b3b;
  border-color: rgba(255, 59, 59, 0.4);
  background: rgba(255, 59, 59, 0.1);
}

/* ========== NAVIGATION MENU ========== */
.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;
}


/* ========== LAYOUT ========== */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 25px 30px;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ========== FULL WIDTH SECTION ========== */
.full-width-section {
  padding: 0 30px 25px 30px;
}

/* ========== PANELS ========== */
.panel {
  background: linear-gradient(135deg, rgba(15, 25, 45, 0.9) 0%, rgba(25, 31, 46, 0.8) 100%);
  border: 1px solid #00e5ff;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(0, 229, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.panel:hover {
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.45), inset 0 1px 0 rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
  border-color: #00e5ff;
}

.panel:hover::before {
  opacity: 1;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #00e5ff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.panel h3 {
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #00e5ff;
}

.large {
  height: 300px;
}

/* ========== PANEL HEADER ========== */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.panel-header h2 {
  margin: 0;
  flex-shrink: 0;
}

/* ========== STATUS INDICATORS HORIZONTAL ========== */
.status-horizontal {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.status-horizontal .status-item {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.status-horizontal .status-item.normal {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.1);
}

.status-horizontal .status-item.normal:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.status-horizontal .status-item.suspicious {
  color: #ffcc00;
  border-color: rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.1);
}

.status-horizontal .status-item.suspicious:hover {
  background: rgba(255, 204, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.status-horizontal .status-item.anomaly {
  color: #ff3b3b;
  border-color: rgba(255, 59, 59, 0.4);
  background: rgba(255, 59, 59, 0.1);
}

.status-horizontal .status-item.anomaly:hover {
  background: rgba(255, 59, 59, 0.2);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
}

/* ========== CANVAS STYLING ========== */
.panel canvas {
  display: block;
  width: 100% !important;
  max-height: 250px;
}

/* ========== TABLE ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  background: rgba(0, 229, 255, 0.1);
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #00e5ff;
  color: #00e5ff;
  font-weight: 600;
  font-size: 13px;
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 13px;
}

tr:hover {
  background: rgba(0, 229, 255, 0.05);
}

/* ========== BARS ========== */
.bar {
  text-align: center;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 8px currentColor;
  transition: all 0.3s ease;
}

.bar.red {
  background: #ff3b3b;
  box-shadow: 0 0 10px #ff3b3b;
}

.bar.red:hover {
  box-shadow: 0 0 20px #ff3b3b;
}

.bar.yellow {
  background: #ffcc00;
  color: #000;
  box-shadow: 0 0 10px #ffcc00;
}

.bar.yellow:hover {
  box-shadow: 0 0 20px #ffcc00;
}

/* ========== METRICS ========== */
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  font-size: 14px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* ========== MINI BARS ========== */
.mini-bars {
  display: flex;
  gap: 2px;
  margin: 12px 0;
  align-items: flex-end;
  height: 40px;
}

.mini-bars div {
  flex: 1;
  background: linear-gradient(180deg, #00e5ff, #00a8cc);
  border-radius: 2px;
  animation: pulse 1.5s infinite alternate;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

@keyframes pulse {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* ========== SUMMARY SECTION ========== */
.summary {
  display: flex;
  gap: 20px;
  padding: 25px 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.card {
  width: 200px;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: inline-block;
}

.card-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-value {
  font-size: 24px;
  font-weight: 700;
}

/* ========== GREEN CARD ========== */
.card.green {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border-color: #00ff88;
  color: #000;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
}

.card.green:hover {
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
}

/* ========== YELLOW CARD ========== */
.card.yellow {
  background: linear-gradient(135deg, #ffcc00, #ffb300);
  border-color: #ffcc00;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.4);
}

.card.yellow:hover {
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.6);
}

/* ========== RED CARD ========== */
.card.red {
  background: linear-gradient(135deg, #ff3b3b, #cc0000);
  border-color: #ff3b3b;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 59, 59, 0.4);
}

.card.red:hover {
  box-shadow: 0 0 40px rgba(255, 59, 59, 0.6);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-left h1 {
    font-size: 18px;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-item {
    font-size: 12px;
    padding: 6px 10px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-horizontal {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 12px;
  }

  .header-left h1 {
    font-size: 16px;
  }

  .logo {
    font-size: 24px;
  }

  .status-inline {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-item {
    font-size: 11px;
    padding: 5px 8px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 15px 20px;
    gap: 15px;
  }

  .full-width-section {
    padding: 0 20px 15px 20px;
  }

  .panel {
    padding: 15px;
  }

  .panel h2 {
    font-size: 16px;
  }

  .large {
    height: 250px;
  }

  .summary {
    padding: 15px 20px;
    gap: 15px;
  }

  .card {
    width: 100%;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 12px 15px;
  }

  .header-left h1 {
    font-size: 14px;
  }

  .logo {
    font-size: 20px;
  }

  .status-item {
    font-size: 10px;
    padding: 4px 8px;
  }

  .nav-item {
    font-size: 10px;
    padding: 4px 6px;
  }

  .layout {
    padding: 10px 15px;
    gap: 10px;
  }

  .full-width-section {
    padding: 0 15px 10px 15px;
  }

  .panel {
    padding: 12px;
  }

  .panel h2 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .large {
    height: 200px;
  }

  .metric {
    font-size: 12px;
    margin: 10px 0;
  }

  .metric-value {
    font-size: 16px;
  }

  .mini-bars {
    height: 30px;
    margin: 8px 0;
  }

  .summary {
    padding: 10px 15px;
    gap: 10px;
  }

  .card {
    width: 100%;
    max-width: 160px;
    padding: 15px;
  }

  .card-icon {
    font-size: 24px;
  }

  .card-label {
    font-size: 12px;
  }

  .card-value {
    font-size: 18px;
  }

  table {
    font-size: 11px;
  }

  th, td {
    padding: 8px;
  }
}