/* Status page styles — light theme with bright electric green gradient and Alan Sans font */
:root{
  --bg: #ffffff;
  --card: #f7fffb;
  --muted: #6b7280;
  --accent-start: #00ff6a; /* electric green */
  --accent-end:   #00d27a;
  --accent-text: #062a1f;
  --good: #10b981;
  --minor: #f59e0b;
  --major: #ef4444;
  --glass: rgba(6,42,31,0.04);
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
/* If Alan Sans is available in the repo or loaded elsewhere, it will be used. */
body, button, input, select, textarea { font-family: 'Alan Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--accent-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:28px;
}
.container{
  /* increased max-width to give the status cards more horizontal space */
  max-width:1400px;
  margin:0 auto;
}
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.header h1{font-size:1.25rem;margin:0}
.header .actions{display:flex;gap:8px}
.btn{
  background:linear-gradient(90deg,var(--accent-start),var(--accent-end));
  color:white;
  border:none;
  padding:8px 14px;border-radius:10px;font-weight:700;cursor:pointer;box-shadow:0 6px 18px rgba(0,210,122,0.12)
}
.link-muted{color:var(--muted);text-decoration:none}
/* make the grid cards a bit wider so content has breathing room */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:22px}
.card{
  background:var(--card);
  border:1px solid rgba(6,42,31,0.04);
  padding:22px;border-radius:12px;min-height:200px;display:flex;flex-direction:column;gap:14px
}
/* ensure title row aligns at the top so long status text doesn't vertically center */
.card .title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.service{display:flex;align-items:center;gap:12px}
.logo{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--accent-start),var(--accent-end));display:flex;align-items:center;justify-content:center;font-weight:800;color:white}
/* keep the status area from collapsing; allow it to stay on the right */
.status-badge{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:180px;justify-content:flex-end}
.status-dot{width:12px;height:12px;border-radius:999px}
.status-text{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.status-sub{color:var(--muted);font-size:0.9rem}
.compact-list{display:flex;flex-direction:column;gap:10px}
.compact-item{display:flex;align-items:flex-start;gap:10px}
.compact-item .name{font-weight:600}
.incident{background:linear-gradient(90deg, rgba(255,230,230,0.9), rgba(255,240,240,0.8));border-radius:8px;padding:14px;color:#3d0000}
.empty{color:var(--muted);font-size:0.95rem}
.footer-note{color:var(--muted);font-size:0.85rem;margin-top:12px}
/* status colors */
.good{background:var(--good)}
.minor{background:var(--minor)}
.major{background:var(--major)}
.unknown{background:gray}
.nav-status{padding:8px 10px;border-radius:8px;background:linear-gradient(90deg,var(--accent-start),var(--accent-end));color:white;font-weight:700;text-decoration:none}
@media (max-width:420px){
  body{padding:16px}
  .header h1{font-size:1rem}
  .grid{grid-template-columns:1fr}
  .status-badge{min-width:120px}
  .status-text{max-width:160px}
}
