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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1e293b;
}

h1 {
  font-size: 28px;
  color: #60a5fa;
}

.header-actions {
  display: flex;
  gap: 10px;
}

button {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

button:hover {
  background: #334155;
  border-color: #60a5fa;
}

/* Compteurs principaux */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.counter {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.counter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.counter.success {
  border-color: #10b981;
}

.counter.error {
  border-color: #ef4444;
}

.counter.waiting {
  border-color: #f59e0b;
}

.counter.queue {
  border-color: #8b5cf6;
}

.counter-value {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.counter.success .counter-value {
  color: #10b981;
}

.counter.error .counter-value {
  color: #ef4444;
}

.counter.waiting .counter-value {
  color: #f59e0b;
}

.counter.queue .counter-value {
  color: #8b5cf6;
}

.counter-label {
  color: #94a3b8;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Graphiques */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
}

.chart-card h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #60a5fa;
}

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

/* Stats détaillées */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
}

.card h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #60a5fa;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #334155;
}

.stat:last-child {
  border-bottom: none;
}

.label {
  color: #94a3b8;
  font-size: 14px;
}

.value {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 14px;
}

footer {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
}

footer p {
  margin: 5px 0;
}

#last-update {
  color: #60a5fa;
}