@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-primary: #0f766e;
  --brand-primary-dark: #0d9488;
  --brand-accent: #f59e0b;
  --brand-dark: #0f172a;
  --brand-muted: #64748b;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }
body { font-family: var(--font); margin: 0; background: var(--surface-2); color: var(--text); line-height: 1.5; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: #e2e8f0; padding: 1.5rem 0; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-brand { padding: 0 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.sidebar-brand .logo { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.sidebar-brand .tagline { font-size: .75rem; color: #94a3b8; margin-top: .25rem; }
.sidebar a { display: flex; align-items: center; padding: .6rem 1.25rem; color: #cbd5e1; font-size: .9rem; border-left: 3px solid transparent; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.06); color: #fff; border-left-color: var(--brand-primary-dark); text-decoration: none; }
.main { flex: 1; padding: 2rem 2.5rem; max-width: 1400px; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.header h1 { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.header-meta { font-size: .875rem; color: var(--text-muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.card .label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.card .value { font-size: 1.75rem; font-weight: 700; }
.card-highlight { border-left: 4px solid var(--brand-primary); }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
th, td { padding: .875rem 1.125rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: none; }
.form-group { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .875rem; }
input, select, textarea { width: 100%; max-width: 480px; padding: .625rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; }
textarea { max-width: 100%; min-height: 140px; font-family: var(--font-mono); font-size: .85rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.25rem; background: var(--brand-primary); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem; font-weight: 600; }
.btn:hover { background: var(--brand-primary-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.section { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.section h2 { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; }
pre.json-output, .code-block { background: #0f172a; color: #e2e8f0; padding: 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .85rem; font-family: var(--font-mono); }
.chart-container { background: var(--surface); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.login-page { max-width: 420px; margin: 4rem auto; background: var(--surface); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.module-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.module-card h3 { margin: 0 0 .5rem; }
.module-card p { margin: 0; font-size: .875rem; color: var(--text-muted); }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.tab { padding: .75rem 1rem; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.playground-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.plan-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.plan-card.featured { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); }
.plan-card .price { font-size: 2rem; font-weight: 800; margin: .5rem 0; }
.plan-card ul { list-style: none; padding: 0; margin: 1rem 0; text-align: left; font-size: .875rem; }
.plan-card li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.plan-card li:before { content: '✓ '; color: var(--success); font-weight: 700; }
.openapi-embed { min-height: 500px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
