@import url("css/remixicon.css");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eff3f9;
  color: #1f2937;
  font-family: "Outfit", Arial, sans-serif;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.standard-theme {
  --at-primary: #0f79f3;
  --at-accent: #00b69b;
  --at-card: #ffffff;
  --at-muted: #697689;
  --at-border: #e7e2e2;
  --at-soft: #eff3f9;
}

.page-shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--at-soft);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 36px);
  margin: 18px 0 18px 18px;
  border: 1px solid var(--at-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(39, 56, 83, .08);
  padding: 20px;
}

.brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
}

.kicker {
  margin: 0 0 4px;
  color: var(--at-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  color: #111827;
  font-size: 34px;
  line-height: 42px;
}

h2 {
  color: #111827;
  font-size: 26px;
  line-height: 34px;
}

h3 {
  color: #111827;
  font-size: 20px;
  line-height: 28px;
}

h4 {
  color: #111827;
  font-size: 16px;
  line-height: 23px;
}

.sidebar nav {
  display: grid;
  gap: 6px;
  align-self: start;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-radius: 12px;
  color: #475569;
  padding: 9px 10px;
  font-size: 15px;
  transition: background .18s ease, color .18s ease;
}

.sidebar nav a:hover,
.sidebar nav a.is-active {
  background: #f1f2fd;
  color: var(--at-primary);
}

.sidebar nav a i {
  width: 18px;
  color: var(--at-primary);
  text-align: center;
}

.sidebar-note {
  align-self: end;
  color: var(--at-muted);
  font-size: 14px;
  line-height: 22px;
}

.content {
  width: 100%;
  padding: 22px 30px 60px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--at-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(39, 56, 83, .06);
  padding: 18px 22px;
}

.topbar-help,
.section-help {
  margin-top: 6px;
  color: var(--at-muted);
  font-size: 14px;
  line-height: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--at-border);
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 15px;
}

.button-secondary:hover {
  border-color: rgba(15, 121, 243, .28);
  background: #f1f2fd;
  color: var(--at-primary);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-grid article {
  min-height: 124px;
  border: 1px solid var(--at-border);
  border-radius: 18px;
  background: var(--at-card);
  box-shadow: 0 10px 32px rgba(39, 56, 83, .06);
  padding: 20px;
}

.metric-grid i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f2fd;
  color: var(--at-primary);
  font-size: 20px;
}

.metric-grid span {
  display: block;
  margin-top: 14px;
  color: var(--at-muted);
  font-size: 14px;
}

.metric-grid strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
}

.panel {
  border: 1px solid var(--at-border);
  border-radius: 18px;
  background: var(--at-card);
  box-shadow: 0 10px 32px rgba(39, 56, 83, .06);
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(140px, auto);
  gap: 16px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.status-main p,
.status-detail span,
.status-detail small,
.status-meta small {
  color: var(--at-muted);
  font-size: 13px;
  line-height: 20px;
}

.status-main p {
  overflow-wrap: anywhere;
}

.status-dot {
  width: 12px;
  min-width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, .12);
}

.status-up .status-dot {
  background: #00b69b;
  box-shadow: 0 0 0 6px rgba(0, 182, 155, .13);
}

.status-warning .status-dot {
  background: #f5a524;
  box-shadow: 0 0 0 6px rgba(245, 165, 36, .15);
}

.status-down .status-dot {
  background: #e74c3c;
  box-shadow: 0 0 0 6px rgba(231, 76, 60, .13);
}

.status-detail,
.status-meta {
  display: grid;
  gap: 3px;
}

.status-detail strong {
  color: #111827;
  font-size: 13px;
  letter-spacing: .08em;
}

.status-meta {
  justify-items: end;
  text-align: right;
}

.status-meta span {
  color: #111827;
  font-weight: 700;
}

@media (max-width: 980px) {
  .page-shell,
  .metric-grid,
  .status-row {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    margin: 0;
    border-radius: 0 0 18px 18px;
  }

  .status-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .content,
  .sidebar {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .top-actions {
    width: 100%;
  }

  .button-secondary {
    width: 100%;
  }
}
