/*
██████╗ ██╗███████╗████████╗     █████╗ ██╗
██╔══██╗██║██╔════╝╚══██╔══╝    ██╔══██╗██║
██████╔╝██║█████╗     ██║       ███████║██║
██╔══██╗██║██╔══╝     ██║       ██╔══██║██║
██║  ██║██║██║        ██║       ██║  ██║██║
╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚═╝  ╚═╝╚═╝
*/

:root {
  --bg-color: #fafafa;
  --surface-color: #ffffff;
  --text-main: #18181b;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  --accent-color: #2563eb;
  
  --status-online: #16a34a;
  --status-online-bg: #f0fdf4;
  --status-degraded: #d97706;
  --status-degraded-bg: #fffbeb;
  --status-offline: #dc2626;
  --status-offline-bg: #fef2f2;
  --status-maint: #4b5563;
  --status-maint-bg: #f3f4f6;
  
  --radius: 10px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  padding: 40px 16px;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.status-hero {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.status-badge-dot.online { background-color: var(--status-online); }
.status-badge-dot.degraded { background-color: var(--status-degraded); }
.status-badge-dot.offline { background-color: var(--status-offline); }
.status-badge-dot.maintenance { background-color: var(--status-maint); }

.hero-title {
  font-size: 18px;
  font-weight: 600;
}

.category-block {
  margin-bottom: 32px;
}

.category-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-name {
  font-weight: 600;
  font-size: 15px;
}

.service-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: capitalize;
}

.badge.online { background: var(--status-online-bg); color: var(--status-online); }
.badge.degraded { background: var(--status-degraded-bg); color: var(--status-degraded); }
.badge.offline { background: var(--status-offline-bg); color: var(--status-offline); }
.badge.maintenance { background: var(--status-maint-bg); color: var(--status-maint); }

.incident-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

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

.incident-title {
  font-weight: 600;
  font-size: 15px;
}

.incident-body {
  font-size: 14px;
  color: var(--text-main);
  white-space: pre-wrap;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: var(--surface-color);
}

.btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 150ms ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

footer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}
