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

body {
  font-family: Arial, sans-serif;
  background: #0f1117;
  color: #fff;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #00d4ff;
  margin-bottom: 10px;
  font-size: 2em;
}

.subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 20px;
}

.alert-banner {
  background: #ff3333;
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 1.3em;
  font-weight: bold;
  display: none;
  animation: blink 1s infinite;
}

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

.status-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.status-card {
  background: #1e2130;
  border-radius: 10px;
  padding: 15px 25px;
  text-align: center;
  min-width: 150px;
}

.status-card .label {
  color: #888;
  font-size: 0.85em;
  margin-bottom: 5px;
}

.status-card .value {
  font-size: 1.4em;
  font-weight: bold;
  color: #00d4ff;
}

.status-card.alert .value { color: #ff3333; }
.status-card.good  .value { color: #00ff88; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  background: #1e2130;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #2a2d3e;
}

.chart-card h3 {
  margin-bottom: 15px;
  color: #00d4ff;
  font-size: 1em;
}

.chart-card canvas { max-height: 200px; }

.theft-log {
  background: #1e2130;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #2a2d3e;
}

.theft-log h3 {
  color: #ff3333;
  margin-bottom: 15px;
}

.theft-item {
  background: #2a1a1a;
  border-left: 4px solid #ff3333;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 0.9em;
}

.normal-item {
  background: #1a2a1a;
  border-left: 4px solid #00ff88;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 0.9em;
}

.refresh-info {
  text-align: center;
  color: #555;
  font-size: 0.85em;
  margin-top: 20px;
}