/* Theme tokens copied from riskcue-frontend/src/index.css (dark theme only). */
:root {
  color-scheme: dark;

  --surface-base: #0A0D12;
  --surface-1: #12161D;
  --surface-2: #1A1F28;
  --surface-3: #232A36;
  --surface-4: #2D3544;

  --content-primary: #F3F4F6;
  --content-secondary: #9CA3AF;
  --content-tertiary: #6B7280;

  --border-default: #232A36;
  --border-strong: #2D3544;

  --brand-navy: #1E3A6E;
  --brand-orange: #E05C25;
  --brand-blue: #3B9AE1;

  --up: #34D399;
  --partial: #FB923C;
  --down: #F87171;
  --nodata: #232A36;

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--surface-base);
  color: var(--content-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-default);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The logo art is dark navy; invert it so it reads on the dark background.
   Copied from riskcue-frontend index.css. */
.app-logo {
  height: 32px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--content-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--content-primary);
}

.nav a.btn {
  background: var(--brand-orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav a.btn:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* Status banner */
.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 8px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: var(--surface-1);
}

.banner .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}

.banner.ok .dot { background: var(--up); box-shadow: 0 0 10px rgba(52, 211, 153, 0.5); }
.banner.bad .dot { background: var(--down); box-shadow: 0 0 10px rgba(248, 113, 113, 0.5); }
.banner.idle .dot { background: var(--nodata); }

.banner .headline {
  font-size: 18px;
  font-weight: 600;
}

.banner.ok .headline { color: var(--up); }
.banner.bad .headline { color: var(--down); }

.updated {
  color: var(--content-tertiary);
  font-size: 13px;
  margin: 0 0 28px;
}

/* Service card */
.card {
  border: 1px solid var(--border-default);
  background: var(--surface-1);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-head .name {
  font-size: 16px;
  font-weight: 600;
}

.card-head .uptime {
  color: var(--content-secondary);
  font-size: 14px;
}

.bar-group + .bar-group {
  margin-top: 24px;
}

.bar-label {
  color: var(--content-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.bar {
  display: flex;
  gap: 2px;
  height: 34px;
}

.bar .seg {
  flex: 1 1 0;
  border-radius: 2px;
  min-width: 0;
}

.bar .seg.up { background: var(--up); }
.bar .seg.partial { background: var(--partial); }
.bar .seg.down { background: var(--down); }
.bar .seg.nodata { background: var(--nodata); }

.bar .seg:hover {
  filter: brightness(1.2);
}

.axis {
  display: flex;
  justify-content: space-between;
  color: var(--content-tertiary);
  font-size: 12px;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
  color: var(--content-tertiary);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 560px) {
  .brand-title { display: none; }
  .bar { height: 28px; }
}
