@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #eef4fb;
  --bg-soft: rgba(255, 255, 255, 0.8);
  --card: rgba(255, 255, 255, 0.84);
  --line: rgba(12, 41, 73, 0.14);
  --text: #10233b;
  --muted: #5c6f84;
  --accent: #0d8f85;
  --accent-strong: #0a7169;
  --danger: #b42318;
  --warning: #9a6a00;
  --ok: #1f7a47;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(64, 140, 255, 0.2), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(13, 143, 133, 0.16), transparent 38%),
    linear-gradient(160deg, #f8fbff 0%, #eef4fb 52%, #e5edf8 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: rgba(98, 163, 255, 0.2);
  top: -50px;
  left: -40px;
}

.orb-b {
  width: 340px;
  height: 340px;
  background: rgba(13, 143, 133, 0.15);
  right: -100px;
  bottom: -90px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.hidden {
  display: none !important;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(24, 48, 79, 0.14);
}

.login-card {
  margin-top: 48px;
  padding: 22px;
  max-width: 420px;
  width: 100%;
  animation: rise 0.5s ease-out both;
}

.topbar {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  animation: rise 0.45s ease-out both;
}

.topbar h2,
.card h1,
.card h3,
.card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

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

.topbar-actions {
  display: flex;
  gap: 8px;
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.brand-logo {
  display: block;
  width: 50%;
  height: auto;
  min-width: 110px;
  max-width: 180px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

button.ghost {
  background: rgba(12, 41, 73, 0.08);
  color: var(--text);
}

.stack {
  display: grid;
  gap: 12px;
}

.stack.compact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(12, 41, 73, 0.2);
}

label span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

input {
  width: 100%;
  border: 1px solid rgba(12, 41, 73, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2);
}

.hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--warning);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  animation: rise 0.55s ease-out both;
}

.stat-card {
  padding: 14px;
}

.stat-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-family: "Space Grotesk", sans-serif;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  animation: rise 0.65s ease-out both;
}

.panel {
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.panel h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(12, 41, 73, 0.12);
  text-align: left;
  font-size: 12px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.badge.online {
  background: rgba(31, 122, 71, 0.16);
  color: var(--ok);
}

.badge.offline {
  background: rgba(180, 35, 24, 0.16);
  color: var(--danger);
}

.badge.active {
  background: rgba(13, 143, 133, 0.16);
  color: var(--accent);
}

.badge.completed {
  background: rgba(154, 106, 0, 0.14);
  color: var(--warning);
}

.status-line {
  min-height: 24px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(12, 41, 73, 0.15);
}

.status-line.error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.25);
}

.status-line.ok {
  color: var(--ok);
  border-color: rgba(31, 122, 71, 0.25);
}

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

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .shell {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    align-items: flex-start;
  }

  .brand-logo {
    min-width: 96px;
  }

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