/* assets/css/status.css - Dark Hamster Host style status layout (for Hammity dark theme) */

:root{
  /* Dark surface system */
  --bg: #0b0d0f;
  --surface: #0f1417;
  --surface-2: #0c1114;
  --text: #e6eef6;
  --muted: #9aa4ad;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.55);
  --radius: 14px;

  /* Status colours */
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #60a5fa;
  --mutedP: #94a3b8;
}

.status-page{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 40px;
  color: var(--text);
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
}

/* Header */
.status-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 18px;
  padding: 22px 10px 8px;
}

.status-kicker{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.status-title{
  margin: 6px 0 8px;
  font-size: 44px;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--text);
}

.status-sub{
  color: var(--muted);
  max-width: 720px;
  line-height: 1.35;
}

.status-updated{
  text-align:right;
  min-width: 240px;
  padding-top: 18px;
}

.status-updated__top{
  color: var(--text);
  font-weight: 800;
}

.status-updated__ago{
  color: var(--text);
}

.status-updated__time{
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

.status-refresh{
  margin-top: 10px;
  font-weight: 800;
  color: var(--muted);
  font-size: 13px;
}

/* Alert card */
.status-alert{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.10));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 10px 10px 18px;
}

.status-alert__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

/* Sections */
.section{
  margin-top: 10px;
  padding: 0 10px;
}

.section-head{
  margin: 22px 0 12px;
}
.section-head--row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}

.section-title{
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  color: var(--text);
}
.section-sub{
  color: var(--muted);
  margin-top: 2px;
  font-size: 13px;
}

.empty-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  color: var(--muted);
}

/* Services grid */
.svc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Service card */
.svc-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.svc-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.svc-name{
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
}
.svc-desc{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.25;
}

/* Status badge (top-right on card) */
.svc-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;

  /* dark-friendly base */
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* Timeline */
.svc-timeline{
  margin-top: 10px;
  display:flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.tl{
  width: 14px;
  height: 14px;
  border-radius: 4px;

  /* dark default */
  background: rgba(148,163,184,0.18); /* unknown */
  border: 1px solid rgba(255,255,255,0.10);
}

/* Timeline status blocks (stronger contrast on dark) */
.tl--healthy{ background: rgba(34,197,94,0.32); border-color: rgba(34,197,94,0.35); }
.tl--unhealthy{ background: rgba(245,158,11,0.32); border-color: rgba(245,158,11,0.35); }
.tl--maintenance{ background: rgba(96,165,250,0.30); border-color: rgba(96,165,250,0.34); }
.tl--disabled{ background: rgba(148,163,184,0.22); border-color: rgba(148,163,184,0.26); }
.tl--offline{ background: rgba(239,68,68,0.34); border-color: rgba(239,68,68,0.38); }
.tl--unknown{ background: rgba(148,163,184,0.18); border-color: rgba(255,255,255,0.10); }

.svc-foot{
  margin-top: 8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: var(--muted);
  font-size: 12px;
}
.svc-foot__meta{
  font-weight: 900;
  color: var(--text);
}

/* Badge colours (dark theme versions) */
.badge--ok{
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.30);
  color: #86efac;
}
.badge--warn{
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.30);
  color: #fcd34d;
}
.badge--bad{
  background: rgba(239,68,68,0.14);
  border-color: rgba(239,68,68,0.30);
  color: #fca5a5;
}
.badge--info{
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.30);
  color: #bfdbfe;
}
.badge--muted{
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.22);
  color: #cbd5e1;
}

/* Incidents */
.inc-list{ display:flex; flex-direction:column; gap: 12px; }

.inc-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.inc-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.inc-title{
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
}
.inc-meta{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.3;
}

.inc-body{
  margin-top: 10px;
  color: rgba(230,238,246,0.92);
  font-size: 14px;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inc-body.expanded{
  -webkit-line-clamp: unset;
  overflow: visible;
}

.inc-toggle{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  cursor:pointer;
  user-select:none;
}

/* Make sure the little dot in alert matches badge class */
.status-alert__dot.badge--ok{ background: var(--ok); }
.status-alert__dot.badge--warn{ background: var(--warn); }
.status-alert__dot.badge--bad{ background: var(--bad); }
.status-alert__dot.badge--info{ background: var(--info); }
.status-alert__dot.badge--muted{ background: var(--mutedP); }

/* Responsive */
@media (max-width: 980px){
  .status-header{ flex-direction:column; }
  .status-updated{ text-align:left; padding-top: 0; }
  .svc-grid{ grid-template-columns: 1fr; }
  .status-title{ font-size: 34px; }
}/* assets/css/status.css - Dark Hamster Host style status layout (for Hammity dark theme) */

:root {
    /* Dark surface system */
    --bg: #0b0d0f;
    --surface: #0f1417;
    --surface-2: #0c1114;
    --text: #e6eef6;
    --muted: #9aa4ad;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    --radius: 14px;

    /* Status colours */
    --ok: #22c55e;
    --warn: #f59e0b;
    --bad: #ef4444;
    --info: #60a5fa;
    --mutedP: #94a3b8;
}

.status-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 14px 40px;
    color: var(--text);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
}

/* Header */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 10px 8px;
}

.status-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.status-title {
    margin: 6px 0 8px;
    font-size: 44px;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: var(--text);
}

.status-sub {
    color: var(--muted);
    max-width: 720px;
    line-height: 1.35;
}

.status-updated {
    text-align: right;
    min-width: 240px;
    padding-top: 18px;
}

.status-updated__top {
    color: var(--text);
    font-weight: 800;
}

.status-updated__ago {
    color: var(--text);
}

.status-updated__time {
    color: var(--muted);
    margin-top: 6px;
    font-size: 13px;
}

.status-refresh {
    margin-top: 10px;
    font-weight: 800;
    color: var(--muted);
    font-size: 13px;
}

/* Alert card */
.status-alert {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.10));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 10px 18px;
}

.status-alert__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

/* Sections */
.section {
    margin-top: 10px;
    padding: 0 10px;
}

.section-head {
    margin: 22px 0 12px;
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: var(--text);
}

.section-sub {
    color: var(--muted);
    margin-top: 2px;
    font-size: 13px;
}

.empty-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    color: var(--muted);
}

/* Services grid */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Service card */
.svc-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.svc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.svc-name {
    font-weight: 900;
    font-size: 15px;
    color: var(--text);
}

.svc-desc {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.25;
}

/* Status badge (top-right on card) */
.svc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;

    /* dark-friendly base */
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* Timeline */
.svc-timeline {
    margin-top: 10px;
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.tl {
    width: 14px;
    height: 14px;
    border-radius: 4px;

    /* dark default */
    background: rgba(148, 163, 184, 0.18);
    /* unknown */
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Timeline status blocks (stronger contrast on dark) */
.tl--healthy {
    background: rgba(34, 197, 94, 0.32);
    border-color: rgba(34, 197, 94, 0.35);
}

.tl--unhealthy {
    background: rgba(245, 158, 11, 0.32);
    border-color: rgba(245, 158, 11, 0.35);
}

.tl--maintenance {
    background: rgba(96, 165, 250, 0.30);
    border-color: rgba(96, 165, 250, 0.34);
}

.tl--disabled {
    background: rgba(148, 163, 184, 0.22);
    border-color: rgba(148, 163, 184, 0.26);
}

.tl--offline {
    background: rgba(239, 68, 68, 0.34);
    border-color: rgba(239, 68, 68, 0.38);
}

.tl--unknown {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(255, 255, 255, 0.10);
}

.svc-foot {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.svc-foot__meta {
    font-weight: 900;
    color: var(--text);
}

/* Badge colours (dark theme versions) */
.badge--ok {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.30);
    color: #86efac;
}

.badge--warn {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.30);
    color: #fcd34d;
}

.badge--bad {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.30);
    color: #fca5a5;
}

.badge--info {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.30);
    color: #bfdbfe;
}

.badge--muted {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
}

/* Incidents */
.inc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inc-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.inc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.inc-title {
    font-weight: 900;
    font-size: 15px;
    color: var(--text);
}

.inc-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.3;
}

.inc-body {
    margin-top: 10px;
    color: rgba(230, 238, 246, 0.92);
    font-size: 14px;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inc-body.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.inc-toggle {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 900;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

/* Make sure the little dot in alert matches badge class */
.status-alert__dot.badge--ok {
    background: var(--ok);
}

.status-alert__dot.badge--warn {
    background: var(--warn);
}

.status-alert__dot.badge--bad {
    background: var(--bad);
}

.status-alert__dot.badge--info {
    background: var(--info);
}

.status-alert__dot.badge--muted {
    background: var(--mutedP);
}

/* Responsive */
@media (max-width: 980px) {
    .status-header {
        flex-direction: column;
    }

    .status-updated {
        text-align: left;
        padding-top: 0;
    }

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

    .status-title {
        font-size: 34px;
    }
}

/* --- Incident pill next to status badge --- */
.svc-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.svc-incident {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;

    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e6eef6;
    cursor: help;
}

/* --- Tooltip (hover/focus) --- */
.tooltip {
    position: relative;
}

.tooltip[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: rgba(2, 6, 23, 0.92);
    color: #e6eef6;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.50);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

.tooltip[data-tip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(2, 6, 23, 0.92);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

.tooltip:hover::after,
.tooltip:focus::after,
.tooltip:hover::before,
.tooltip:focus::before {
    opacity: 1;
}