﻿:root {
  color-scheme: dark;
  --bg: #09111f;
  --panel: rgba(12, 19, 34, 0.92);
  --panel-strong: rgba(8, 13, 24, 0.96);
  --text: #e5eefb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --accent: #47c7ff;
  --accent-2: #8b5cf6;
  --success: #34d399;
  --warning: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top left, rgba(71, 199, 255, 0.14), transparent 30%), radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 25%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { padding: 24px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 10, 18, 0.95), rgba(10, 16, 28, 0.95)); display: flex; flex-direction: column; gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-weight: 800; }
.brand-name { font-weight: 700; letter-spacing: 0.02em; }
.brand-sub, .eyebrow, .muted { color: var(--muted); }
.nav-link { display: block; padding: 12px 14px; border-radius: 12px; color: var(--muted); margin-bottom: 6px; transition: all .18s ease; }
.nav-link:hover, .nav-link.active { background: rgba(71, 199, 255, 0.12); color: var(--text); }
.logout-form { margin-top: auto; }
.logout-form button, .form-stack button, .inline-actions button, .inline-actions a, .secondary-button { width: 100%; border: 0; border-radius: 12px; padding: 12px 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-weight: 700; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.secondary-button, .inline-actions a.secondary-button { background: rgba(71, 199, 255, 0.08); color: var(--text); border: 1px solid rgba(71, 199, 255, 0.18); }
.ghost-button { background: rgba(248, 113, 113, 0.08) !important; color: #fecaca !important; border: 1px solid rgba(248, 113, 113, 0.2) !important; }
.main-panel { padding: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.topbar h1, .content-card h2, .hero-card h2 { margin: 6px 0 0; }
.status-chip { padding: 8px 12px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); color: #bff7df; border: 1px solid rgba(52, 211, 153, 0.25); }
.hero-grid, .stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.hero-card, .content-card, .stat-card, .login-card, .integration-card, .mini-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.hero-card, .content-card { padding: 22px; }
.hero-card.accent { background: linear-gradient(135deg, rgba(71, 199, 255, 0.14), rgba(139, 92, 246, 0.12)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.stat-card strong { font-size: 2rem; }
.note-box, .error-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(71, 199, 255, 0.08); border: 1px solid rgba(71, 199, 255, 0.18); }
.error-box { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.22); color: #fecaca; }
.login-body { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 460px); padding: 28px; }
.login-brand { margin-bottom: 18px; }
.form-stack { display: grid; gap: 14px; margin-top: 18px; }
.form-stack label { display: grid; gap: 8px; color: var(--muted); }
.form-stack input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 10, 18, 0.9); color: var(--text); }
.provider-list, .integration-grid, .grid-two { display: grid; gap: 16px; }
.provider-list { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 12px; }
.provider-pill { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); text-align: center; color: var(--muted); }
.integration-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 18px; }
.integration-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.integration-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.integration-card h3 { margin: 6px 0 0; }
.status-pill { padding: 8px 12px; border-radius: 999px; font-size: 0.85rem; border: 1px solid transparent; white-space: nowrap; }
.badge-success { background: rgba(52, 211, 153, 0.12); color: #bff7df; border-color: rgba(52, 211, 153, 0.25); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #fde68a; border-color: rgba(245, 158, 11, 0.22); }
.badge-neutral { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.2); }
.integration-meta { display: grid; gap: 10px; margin: 0; }
.integration-meta div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline; }
.integration-meta dt { color: var(--muted); }
.integration-meta dd { margin: 0; word-break: break-word; }
.webhook-card { padding: 14px; border-radius: 16px; border: 1px solid rgba(71, 199, 255, 0.18); background: rgba(71, 199, 255, 0.05); display: grid; gap: 10px; }
.webhook-card code { display: block; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 12px; background: rgba(6, 10, 18, 0.95); border: 1px solid var(--line); }
.inline-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.action-row { margin-top: 2px; }
.grid-two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 16px; }
.mini-card { padding: 20px; }
.tiny { font-size: 0.85rem; }
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .stats-grid { grid-template-columns: 1fr; }
  .inline-actions, .integration-meta div { grid-template-columns: 1fr; }
}
