/* Voxscope — Design System */
/* Accent: #7c3aed (violeta) — diferente de DashAI teal #00c2cb */

:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --bg: #f8f7ff;
  --surface: #ffffff;
  --surface-main: #f3f0ff;
  --border: #e5e2f0;
  --text-main: #1a1625;
  --text-muted: #6b6880;
  --text-subtle: #9d99b0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #0d0b14;
  --surface: #1a1625;
  --surface-main: #211d30;
  --border: #2e2a40;
  --text-main: #f0eeff;
  --text-muted: #9d99b0;
  --text-subtle: #6b6880;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
}

/* Layout */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.sidebar-logo-icon {
  width: 32px; height: 32px; background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.sidebar-logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }

.nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.25rem; border-radius: 0; cursor: pointer;
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  border-left: 2px solid transparent; transition: all 0.15s;
}
.nav-item:hover { background: var(--surface-main); color: var(--text-main); }
.nav-item.active { color: var(--primary); background: var(--surface-main); border-left-color: var(--primary); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-spacer { flex: 1; }
.sidebar-footer { padding: 0.75rem 1.25rem; font-size: 0.7rem; color: var(--text-subtle); border-top: 1px solid var(--border); }

.main-content { flex: 1; overflow-y: auto; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.topbar-title { font-size: 0.95rem; font-weight: 700; }
.topbar-spacer { flex: 1; }
.topbar-user { font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }

.view-content { padding: 1.5rem; display: none; }
.view-content.active { display: block; }

.section-hero { margin-bottom: 1.5rem; }
.section-hero h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.section-hero p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Cards */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-header { display: flex; align-items: center; gap: 0.6rem; padding: 1rem 1.25rem 0; }
.card-icon { width: 30px; height: 30px; background: var(--surface-main); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.card-icon svg { width: 15px; height: 15px; }
.card-title { font-size: 0.9rem; font-weight: 700; }
.card-body { padding: 0.75rem 1.25rem 1.25rem; }

/* Voice tiles */
.voice-tile {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); cursor: pointer;
  transition: border-color 0.15s;
}
.voice-tile:hover { border-color: var(--primary); }
.voice-tile .network-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.voice-tile .handle { font-weight: 700; font-size: 0.88rem; }
.voice-tile .network-label { font-size: 0.72rem; color: var(--text-muted); }

/* States */
.loading-state { display: flex; align-items: center; justify-content: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; gap: 0.5rem; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; background: var(--surface-main); color: var(--text-main); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Network colors */
.net-instagram { background: #e1306c; }
.net-twitter { background: #1da1f2; }
.net-tiktok { background: #010101; }
.net-youtube { background: #ff0000; }
.net-facebook { background: #1877f2; }
.net-linkedin { background: #0a66c2; }
.net-web { background: #6b6880; }
