:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #1d2433;
  --muted: #6d7487;
  --brand: #0f7f8e;
  --brand-2: #f97316;
  --line: #dfe4ef;
  --ok: #1a9a55;
  --warn: #b7791f;
  --danger: #d03c3c;
  --shadow: 0 18px 35px rgba(20, 31, 53, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.bg-shape-1 {
  width: 360px;
  height: 360px;
  background: #6bd6cb;
  top: -120px;
  left: -90px;
}

.bg-shape-2 {
  width: 380px;
  height: 380px;
  background: #ffd29a;
  right: -110px;
  bottom: -120px;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.login-card h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
}

.login-card p {
  color: var(--muted);
}

.login-card label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

input,
textarea,
select,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

button {
  border: 0;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0ba8aa);
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

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

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: #0f1a2a;
  color: #edf2f7;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.brand small {
  color: #adc0d5;
}

.menu {
  display: grid;
  gap: 6px;
  overflow-y: auto;
}

.menu button {
  text-align: left;
  background: transparent;
  color: #f2f6fc;
  border: 1px solid transparent;
  padding: 10px;
}

.menu button.active,
.menu button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.logout-btn {
  margin-top: auto;
  background: linear-gradient(135deg, #eb5a32, var(--brand-2));
}

.content {
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.topbar h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.view {
  display: grid;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.panel h3 {
  margin-top: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}

.metric-card strong {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-card span {
  font-size: 1.4rem;
  font-weight: 800;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.grid-form textarea,
.grid-form button {
  grid-column: 1 / -1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.placeholder {
  color: var(--muted);
  min-height: 140px;
  display: grid;
  place-items: center;
}

pre {
  background: #121725;
  color: #f1f6ff;
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
