:root {
  --bg: #0b0f14;
  --panel: #101825;
  --panel2: #0f1623;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --muted2: rgba(255, 255, 255, 0.45);
  --accent: #0fd1ec;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1100px;
  --gap: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 20% -10%,
      rgba(15, 209, 236, 0.14),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 90% 10%,
      rgba(120, 80, 255, 0.12),
      transparent 50%
    ),
    var(--bg);
}

.app {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 209, 236, 0.15);
}

.title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: 120ms ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: var(--text);
  border-color: rgba(15, 209, 236, 0.35);
  background: rgba(15, 209, 236, 0.08);
}

.nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.content {
  padding: 22px 18px 30px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: var(--max);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 80%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.card-head h1 {
  margin: 0;
  font-size: 18px;
}

.card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.embed-wrap {
  padding: 14px;
  background: var(--panel2);
}

/* Responsive iframe:
   - keeps a nice tall viewport for data apps
   - avoids fixed 800x450 so it works on mobile */
.embed {
  width: 100%;
  height: min(78vh, 900px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #070a0f;
}

.footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  justify-content: center;
}
