:root {
  --bg-primary: #07090e;
  --bg-surface: #0d121f;
  --bg-card: #131b2e;
  --border: #1f2937;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --whatsapp: #25d366;
  --gmail: #ea4335;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background: var(--bg-primary); color: var(--text-main); display: flex; height: 100vh; overflow: hidden; }

.sidebar { width: 280px; background: var(--bg-surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px; gap: 8px; }
.brand { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.brand span { background: var(--accent); color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; }

.nav-btn { background: transparent; border: 1px solid transparent; color: var(--text-muted); padding: 12px 16px; border-radius: 8px; text-align: left; cursor: pointer; font-weight: 500; transition: 0.2s; display: flex; align-items: center; gap: 12px; }
.nav-btn:hover, .nav-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 16px 30px; display: flex; justify-content: space-between; align-items: center; }
.topbar h2 { font-size: 1.1rem; font-weight: 600; }
.db-badge { background: rgba(16, 185, 129, 0.15); color: var(--success); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

.content { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: #fff; display: flex; justify-content: space-between; align-items: center; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); padding: 20px; border-radius: 10px; }
.stat-card h4 { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.stat-card .val { font-size: 1.8rem; font-weight: 700; color: #fff; margin-top: 8px; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
th { color: var(--text-muted); font-weight: 600; background: var(--bg-surface); }

input, textarea, select { background: var(--bg-main); border: 1px solid var(--border); color: #fff; padding: 10px 14px; border-radius: 8px; width: 100%; margin-top: 6px; margin-bottom: 14px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
.btn { background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn:hover { background: var(--accent-hover); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-gmail { background: var(--gmail); color: #fff; }
