:root {
  --bg: #111421;
  --panel: #1b2030;
  --panel-soft: rgba(255,255,255,.04);
  --text: #f4f6fb;
  --muted: #b8c0d8;
  --green: #31d158;
  --yellow: #ffd60a;
  --orange: #ff9f0a;
  --red: #ff453a;
  --blue: #64d2ff;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

.wrap {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 20px;
}

header {
  margin-bottom: 28px;
}

header h1 {
  margin: 0;
  font-size: 36px;
}

header p {
  color: var(--muted);
}

.summary {
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: bold;
}

.card {
  background: var(--panel);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.row:last-child {
  border-bottom: 0;
}

small {
  display: block;
  color: var(--muted);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

/* Component statuses */
.operational {
  background: rgba(49,209,88,.18);
  color: var(--green);
}

.degraded {
  background: rgba(255,214,10,.18);
  color: var(--yellow);
}

.partial_outage {
  background: rgba(255,159,10,.18);
  color: var(--orange);
}

.major_outage {
  background: rgba(255,69,58,.18);
  color: var(--red);
}

.maintenance {
  background: rgba(100,210,255,.18);
  color: var(--blue);
}

/* Incident statuses */
.badge.investigating {
  background: rgba(255,69,58,.18);
  color: var(--red);
}

.badge.identified {
  background: rgba(255,159,10,.18);
  color: var(--orange);
}

.badge.monitoring {
  background: rgba(255,214,10,.18);
  color: var(--yellow);
}

.badge.resolved {
  background: rgba(49,209,88,.18);
  color: var(--green);
}

.form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea,
button {
  padding: 12px;
  border-radius: 8px;
  border: 0;
}

textarea {
  min-height: 120px;
}

button {
  cursor: pointer;
  font-weight: bold;
}

.incident {
  padding: 14px 0;
}

hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 18px 0;
}

.incident-body {
  background: var(--panel-soft);
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
}

/* Timeline */
.timeline {
  margin-top: 24px;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.18);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 7px;
  z-index: 2;
}

.timeline-dot.investigating {
  background: var(--red);
}

.timeline-dot.identified {
  background: var(--orange);
}

.timeline-dot.monitoring {
  background: var(--yellow);
}

.timeline-dot.resolved {
  background: var(--green);
}

.timeline-content {
  padding-bottom: 4px;
}

.timeline-content p {
  margin: 10px 0 6px;
}

.timeline-dot {
  display: block !important;
  min-width: 14px !important;
  min-height: 14px !important;
  background-clip: padding-box !important;
}

.timeline-dot.resolved { background-color: var(--green) !important; }
.timeline-dot.monitoring { background-color: var(--yellow) !important; }
.timeline-dot.investigating { background-color: var(--red) !important; }
.timeline-dot.identified { background-color: var(--orange) !important; }
