/* ════════════════════════════════════════════════════════════════
   Máquina de Leads — Media Clorians Comunicação
   Identidade visual: light mode, Montserrat, magenta #FF0066
   ════════════════════════════════════════════════════════════════ */

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

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --primary:      #FF0066;
  --primary-dark: #cc0052;
  --primary-light:#fff0f5;
  --secondary:    #6C63FF;
  --cyan:         #00D4FF;

  --bg:           #F4F5F7;
  --surface:      #FFFFFF;
  --sidebar-bg:   #1A1A2E;
  --sidebar-text: #CBD5E1;

  --text:         #1A1A2E;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;

  --success:  #10B981;
  --warning:  #F59E0B;
  --danger:   #EF4444;
  --info:     #3B82F6;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);

  --sidebar-w: 260px;
  --topbar-h:  64px;
  --transition: .2s ease;
}

/* ── Alpine.js: ocultar até inicializar ──────────────────────── */
[x-cloak] { display: none !important; }

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ══════════════════════════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo img {
  width: 140px;
  filter: brightness(0) invert(1);
}

.sidebar-section {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sidebar-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #475569;
  padding: 12px 20px 4px;
}

.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.sidebar-nav a.active {
  background: var(--primary);
  color: #fff;
}
.sidebar-nav a .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .8;
}
.sidebar-nav a.active .nav-icon { opacity: 1; }

.sidebar-bottom {
  margin-top: auto;
  padding: 16px 8px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ── Main content ─────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;          /* impede expansão além da viewport em flexbox */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  width: 280px;
}
.topbar-search input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 100%;
}
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Page content ─────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px;
  overflow-x: hidden;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   COMPONENTES BASE
   ══════════════════════════════════════════════════════════════ */

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px;
}
.card-sm { padding: 16px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* ── Stat cards (dashboard) ───────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.stat-card .stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-card .stat-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

/* ── Botões ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-light); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Formulários ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,0,102,.1);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ── Badges / Tags ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-novo       { background: #EFF6FF; color: #3B82F6; }
.badge-contatado  { background: #FFF7ED; color: #EA580C; }
.badge-respondeu  { background: #ECFDF5; color: #059669; }
.badge-negociando { background: #FAF5FF; color: #7C3AED; }
.badge-cliente    { background: #F0FDF4; color: #16A34A; }
.badge-perdido    { background: #FEF2F2; color: #DC2626; }
.badge-primary    { background: var(--primary-light); color: var(--primary); }
.badge-gray       { background: #F3F4F6; color: #6B7280; }

/* Score badge */
.score-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px; font-weight: 700;
}
.score-high   { background: #ECFDF5; color: #059669; }
.score-medium { background: #FFF7ED; color: #EA580C; }
.score-low    { background: #FEF2F2; color: #DC2626; }

/* ── Tabelas ──────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead tr { border-bottom: 1px solid var(--border); }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  white-space: nowrap;
}
td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ── Alertas / Flashes ────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ══════════════════════════════════════════════════════════════
   KANBAN (Pipeline de leads)
   ══════════════════════════════════════════════════════════════ */

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
}

.kanban-column {
  flex: 0 0 280px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 200px;
}
.kanban-column-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kanban-column-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.kanban-column-count {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  color: var(--text-muted);
}

.kanban-cards { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.lead-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.lead-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.lead-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-card-contact {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.lead-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.score-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px 0 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .4s ease;
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  align-items: flex-start;
}
.activity-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Funil visual */
.funnel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.funnel-item:last-child { border-bottom: none; }
.funnel-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.funnel-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
}
.funnel-label { font-size: 12px; font-weight: 600; min-width: 110px; }
.funnel-count { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 30px; text-align: right; }

/* ══════════════════════════════════════════════════════════════
   DETALHE DO LEAD
   ══════════════════════════════════════════════════════════════ */

.lead-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: flex-start;
}

.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

.interaction-list { display: flex; flex-direction: column; gap: 12px; }
.interaction-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
  border-left: 3px solid var(--border);
}
.interaction-item.email_enviado  { border-left-color: var(--info); }
.interaction-item.email_recebido { border-left-color: var(--success); }
.interaction-item.ligacao        { border-left-color: var(--warning); }
.interaction-item.reuniao        { border-left-color: var(--secondary); }
.interaction-item.nota           { border-left-color: var(--border); }
.interaction-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.interaction-content { font-size: 13px; line-height: 1.5; }

/* Score breakdown */
.score-breakdown { display: flex; flex-direction: column; gap: 8px; }
.score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.score-item-icon { font-size: 14px; width: 20px; text-align: center; }
.score-item-label { flex: 1; }
.score-item-result { font-weight: 700; }
.score-item-result.ok { color: var(--success); }
.score-item-result.fail { color: var(--danger); }

/* ══════════════════════════════════════════════════════════════
   PÁGINAS DE AUTENTICAÇÃO
   ══════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
}

.auth-card .logo {
  display: block;
  margin: 0 auto 32px;
  max-width: 180px;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* Decoração geométrica (inspirada no site Media Clorians) */
.auth-page::before {
  content: '';
  position: fixed;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,0,102,.1);
  transform: rotate(30deg);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: fixed;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(108,99,255,.1);
  transform: rotate(45deg);
  pointer-events: none;
}

/* QR Code 2FA */
.qr-container {
  text-align: center;
  margin: 20px 0;
}
.qr-container img {
  border: 4px solid var(--border);
  border-radius: var(--radius);
  max-width: 200px;
}
.totp-secret {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: .15em;
  text-align: center;
  color: var(--text);
  margin: 12px 0;
  word-break: break-all;
}
.otp-input {
  text-align: center;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: .5em;
  padding: 14px !important;
}

/* ══════════════════════════════════════════════════════════════
   UTILITÁRIOS
   ══════════════════════════════════════════════════════════════ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.text-sm   { font-size: 12px; }
.text-xs   { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Spinner de loading */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Paginação */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 0 4px;
}
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1;
}
.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFF0F6;
  text-decoration: none;
}
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
  cursor: default;
  box-shadow: 0 2px 6px rgba(255,0,102,.25);
}
.page-btn.disabled {
  color: var(--text-muted);
  cursor: default;
  border-color: transparent;
  background: transparent;
}
/* compat: mantém .page-link funcionando onde ainda for usado */
.page-link { display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--surface); cursor: pointer; text-decoration: none; transition: all var(--transition); }
.page-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.page-link[disabled] { opacity: .4; cursor: not-allowed; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 13px; }

/* Dropdown menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg); text-decoration: none; }
.dropdown-item.danger { color: var(--danger); }

/* Responsividade básica */
@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: 1fr; }
  .lead-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .kanban-board { flex-direction: column; }
  .kanban-column { flex: 1 1 auto; width: 100%; }
  .auth-card { padding: 32px 24px; }
}
