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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #333;
  padding: 20px;
  min-height: 100vh;
}

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

header {
  background: #1e293b;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.75em;
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

.last-update {
  color: #94a3b8;
  font-size: 0.875em;
}

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

.status-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s;
}

.status-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.status-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-indicator.online {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.status-card h3 {
  font-size: 1.1em;
  color: #1e293b;
  margin-bottom: 5px;
  font-weight: 600;
}

.status-url {
  color: #64748b;
  font-size: 0.85em;
  text-decoration: none;
  word-break: break-all;
}

.status-url:hover {
  text-decoration: underline;
}

.status-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.detail-label {
  color: #6b7280;
}

.detail-value {
  font-weight: 600;
  color: #333;
}

.uptime {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}

.uptime.good {
  color: #10b981;
}

.uptime.warning {
  color: #f59e0b;
}

.uptime.bad {
  color: #ef4444;
}

.ssl-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 0.85em;
  font-weight: 500;
  border-left: 3px solid #f59e0b;
}

.ssl-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 0.85em;
  font-weight: 500;
  border-left: 3px solid #ef4444;
}

.charts-section, .incidents-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  margin-bottom: 30px;
}

.charts-section h2, .incidents-section h2 {
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 1.25em;
  font-weight: 600;
}

.chart-container {
  position: relative;
  height: 400px;
}

.incidents-list {
  max-height: 400px;
  overflow-y: auto;
}

.incident-item {
  padding: 15px;
  border-left: 4px solid #ef4444;
  background: #fef2f2;
  margin-bottom: 10px;
  border-radius: 4px;
}

.incident-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.incident-url {
  font-weight: 600;
  color: #991b1b;
}

.incident-time {
  color: #6b7280;
  font-size: 0.85em;
}

.incident-details {
  color: #dc2626;
  font-size: 0.9em;
}

.no-incidents {
  text-align: center;
  color: #10b981;
  padding: 40px;
  font-size: 1em;
  background: #f0fdf4;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  header h1 {
    font-size: 1.5em;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

