:root {
  --bg-1: #f3f0ea;
  --bg-2: #e7eef6;
  --ink: #1f2937;
  --muted: #5b6774;
  --panel: #ffffff;
  --line: #d6dde6;
  --accent: #0b7285;
  --accent-2: #1864ab;
  --ok: #2f9e44;
  --warn: #f08c00;
  --error: #c92a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.page {
  min-height: 100vh;
  padding: 32px 24px 48px;
  animation: page-in 400ms ease-out;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

.content {
  display: grid;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(20, 32, 52, 0.06);
  animation: rise-in 420ms ease-out;
}

.card {
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(20, 32, 52, 0.06);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.alert {
  background: rgba(201, 42, 42, 0.12);
  color: var(--error);
  border: 1px solid rgba(201, 42, 42, 0.2);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

h1,
h2 {
  margin: 0;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.filters input,
.filters select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.btn {
  align-self: end;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th,
table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.mono {
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-ok {
  background: rgba(47, 158, 68, 0.12);
  color: var(--ok);
}

.status-error {
  background: rgba(201, 42, 42, 0.12);
  color: var(--error);
}

.status-not-configured {
  background: rgba(240, 140, 0, 0.12);
  color: var(--warn);
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.value {
  font-size: 16px;
  font-weight: 600;
}

.actions {
  margin-top: 18px;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
