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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
  background-attachment: fixed;
  color: #1a1a1a;
  min-height: 100vh;
}

/* Shapes de fundo (modo claro) */
#bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.4s;
}
body.dark #bg-shapes { opacity: 0; }

#bg-shapes div:nth-child(1) {
  position: absolute;
  width: 650px; height: 650px;
  background: linear-gradient(135deg, rgba(37,99,235,0.55), rgba(16,185,129,0.4));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(45px);
  top: -180px; left: -120px;
  animation: floatShape 8s ease-in-out infinite;
}
#bg-shapes div:nth-child(2) {
  position: absolute;
  width: 700px; height: 700px;
  background: linear-gradient(225deg, rgba(22,163,74,0.55), rgba(5,150,105,0.4));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(45px);
  bottom: -200px; right: -150px;
  animation: floatShape 10s ease-in-out infinite reverse;
}
#bg-shapes div:nth-child(3) {
  position: absolute;
  width: 420px; height: 420px;
  background: linear-gradient(90deg, rgba(6,182,212,0.45), rgba(59,130,246,0.35));
  border-radius: 70% 30% 50% 50% / 50% 70% 30% 50%;
  filter: blur(40px);
  top: 35%; left: 55%;
  transform: translateX(-50%);
  animation: floatShape 12s ease-in-out infinite 2s;
}
#bg-shapes div:nth-child(4) {
  position: absolute;
  width: 350px; height: 350px;
  background: linear-gradient(45deg, rgba(99,102,241,0.4), rgba(37,99,235,0.3));
  border-radius: 50% 60% 40% 60% / 40% 50% 60% 50%;
  filter: blur(40px);
  top: -30px; right: 5%;
  animation: floatShape 9s ease-in-out infinite 1s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(30px) scale(1.05); }
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 60px;
  background: linear-gradient(180deg, #1e3a8a 0%, #14532d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  border-right: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 10;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}

.sidebar-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-icon:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.sidebar-icon.active {
  background: rgba(74,222,128,0.25);
  color: #4ade80;
}

.sidebar-bottom {
  margin-top: auto;
}

/* Main */
.main {
  margin-left: 60px;
  padding: 32px;
  flex: 1;
}

/* Header */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.page-header p {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

/* Action Buttons */
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-action:hover {
  background: #dcfce7;
  border-color: #4ade80;
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.25);
}

@media (max-width: 600px) {
  .actions {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card-clickable {
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-icon.purple { background: #ede9fe; color: #7c3aed; }
.card-icon.green  { background: #dcfce7; color: #16a34a; }
.card-icon.red    { background: #fee2e2; color: #dc2626; }

.card-number {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.card-label {
  font-size: 13px;
  color: #888;
}

/* Table Section */
.table-section {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  max-width: 600px;
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: #aaa;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #333;
  width: 100%;
}

.search-box input::placeholder { color: #bbb; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab:hover { background: #f0f9f4; color: #16a34a; }
.tab.active { background: #4ade80; color: #fff; }

/* Table Body */
.table-body {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty {
  text-align: center;
  color: #bbb;
  font-size: 13px;
  padding: 32px 0;
}

/* Pessoa Row */
.pessoa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 13px;
}

.pessoa-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pessoa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.pessoa-nome  { font-weight: 600; color: #111; }
.pessoa-tipo  { font-size: 12px; color: #888; }

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge.postou     { background: #dcfce7; color: #16a34a; }
.badge.nao-postou { background: #fee2e2; color: #dc2626; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modal-icon-box {
  width: 52px;
  height: 52px;
  background: #f0fdf4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #16a34a;
}

.modal-icon-box svg { width: 26px; height: 26px; }

.modal h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.modal label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-top: 14px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal input,
.modal select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
  color: #111;
  font-family: inherit;
  transition: border-color 0.2s;
}

.modal input:focus,
.modal select:focus {
  border-color: #4ade80;
  background: #fff;
}

.modal-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.link-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #444;
  background: #f9fafb;
  outline: none;
  min-width: 0;
}

.btn-copiar {
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-copiar:hover { background: #f5f5f5; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.btn-whatsapp:hover { background: #1ebe5d; }

.modal-actions {
  display: flex;
  gap: 10px;
}

.btn-cancelar {
  flex: 1;
  padding: 11px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  transition: background 0.2s;
}
.btn-cancelar:hover { background: #f5f5f5; }

.btn-confirmar {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: #4ade80;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.btn-confirmar:hover { background: #22c55e; }
.btn-confirmar:disabled { opacity: 0.6; cursor: default; }

.btn-fechar {
  width: 100%;
  padding: 11px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  transition: background 0.2s;
}

.btn-fechar:hover { background: #f5f5f5; }

/* Login Page */
.login-page {
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.login-logo {
  width: 52px;
  height: 52px;
  background: #4ade80;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}

.login-logo svg { width: 26px; height: 26px; }

.login-box h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.login-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
  margin-top: 14px;
}

.login-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fafafa;
  color: #111;
  transition: border-color 0.2s;
}

.login-box input:focus { border-color: #4ade80; }

.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #4ade80;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.btn-login:hover { background: #22c55e; }
.btn-login:disabled { opacity: 0.6; cursor: default; }

.erro {
  color: #dc2626;
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}

.sucesso-icon {
  width: 60px;
  height: 60px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #16a34a;
}

.sucesso-icon svg { width: 30px; height: 30px; }

/* Upload */
.upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  color: #aaa;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.upload-area:hover {
  border-color: #4ade80;
  background: #f0fdf4;
  color: #16a34a;
}

.btn-desativar {
  padding: 9px 16px;
  border: 1.5px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #dc2626;
  transition: background 0.2s;
}

.btn-desativar:hover { background: #fee2e2; }

/* Painel do líder */
.painel-lider-page {
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 20px;
  display: block;
}

.painel-lider {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.painel-lider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.painel-lider-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.btn-sair {
  padding: 7px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #666;
}

.midia-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.midia-data {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  text-transform: capitalize;
}

.midia-preview {
  width: 100%;
  border-radius: 12px;
  max-height: 400px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}

.btn-compartilhar {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-compartilhar:hover { background: #1ebe5d; }

.btn-ja-postou {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.midia-vazia {
  background: #fff;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  color: #888;
  font-size: 14px;
}

.midia-loading {
  text-align: center;
  color: #bbb;
  font-size: 13px;
  padding: 40px;
}

/* Detalhes */
.detalhe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detalhe-item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detalhe-label {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detalhe-valor {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

/* Calendário */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-btn {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  color: #16a34a;
  font-size: 18px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cal-futuro {
  opacity: 0.3;
  cursor: default;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  padding: 4px 0;
}

.cal-dia {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.cal-postou {
  background: #4ade80;
  color: #fff;
  font-weight: 700;
}

.cal-perdeu {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}

.cal-perdeu.cal-hoje {
  background: #fca5a5;
  border-color: #dc2626;
  color: #7f1d1d;
}

.cal-dia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.cal-emoji {
  font-size: 10px;
  line-height: 1;
}

.cal-hoje {
  border: 2px solid #4ade80;
  color: #16a34a;
  font-weight: 700;
}

.cal-postou.cal-hoje {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* Card de conteúdo publicado */
.conteudo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}
.conteudo-row:last-child { border-bottom: none; }
.conteudo-expirado { opacity: 0.55; }

/* Relatório Diário */
.relatorio-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.relatorio-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.rel-dia {
  border: 1.5px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.rel-dia:hover { border-color: #d1fae5; }
.rel-dia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.rel-dia-data {
  font-weight: 600;
  font-size: 14px;
  color: #111;
  text-transform: capitalize;
}
.rel-dia-stats {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.rel-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.rel-chevron {
  transition: transform 0.2s;
  color: #aaa;
}
.rel-dia.aberto .rel-chevron { transform: rotate(180deg); }
.rel-dia-detalhe {
  display: none;
  padding: 0 16px 16px;
  border-top: 1.5px solid #f5f5f5;
}
.rel-dia.aberto .rel-dia-detalhe { display: block; }
.rel-grupo { margin-top: 12px; }
.rel-grupo-titulo {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaa;
  margin-bottom: 8px;
}
.rel-nomes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rel-nome {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.rel-postou    { background: #dcfce7; color: #15803d; }
.rel-nao-postou { background: #fee2e2; color: #b91c1c; }

/* Botão WhatsApp Suporte (flutuante) */
.btn-suporte-wpp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  color: #fff;
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-suporte-wpp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* Seção de configurações gerais */
.config-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.config-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  margin-bottom: 6px;
}
.config-section-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}
.config-suporte-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.config-suporte-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s;
}
.config-suporte-row input:focus { border-color: #4ade80; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .main { padding: 20px 14px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .table-header { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: center; }
}

/* ── Botão dark mode ── */
.btn-dark-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-dark-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Dark Mode ── */
body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark .sidebar {
  background: linear-gradient(180deg, #009c3b 0%, #fedf00 50%, #002776 100%);
  border-right: none;
  box-shadow: 2px 0 16px rgba(0,39,118,0.4);
}
body.dark .sidebar-icon { color: rgba(255,255,255,0.45); }
body.dark .sidebar-icon:hover { background: rgba(255,255,255,0.12); color: #fff; }
body.dark .sidebar-icon.active { background: rgba(255,255,255,0.18); color: #fff; }
body.dark .btn-dark-toggle { color: rgba(255,255,255,0.45); }
body.dark .btn-dark-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }

body.dark .card,
body.dark .table-section,
body.dark .modal,
body.dark .relatorio-wrap,
body.dark .midia-card,
body.dark .painel-lider-header,
body.dark .config-section,
body.dark .login-box {
  background: #1e293b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

body.dark .page-header h1,
body.dark .card-number,
body.dark .pessoa-nome,
body.dark .modal h2,
body.dark .relatorio-titulo,
body.dark .rel-dia-data,
body.dark .detalhe-valor,
body.dark .config-section-header,
body.dark .painel-lider-header h1,
body.dark .login-box h1 { color: #f1f5f9; }

body.dark .page-header p,
body.dark .card-label,
body.dark .pessoa-tipo,
body.dark .modal-sub,
body.dark .modal label,
body.dark .rel-dia-stats,
body.dark .rel-grupo-titulo,
body.dark .config-section-desc,
body.dark .midia-data,
body.dark .empty,
body.dark .login-sub { color: #94a3b8; }

body.dark .pessoa-row   { background: #0f172a; }
body.dark .detalhe-item { background: #0f172a; }
body.dark .detalhe-label { color: #64748b; }

body.dark .search-box { background: #0f172a; border-color: #334155; }
body.dark .search-box input { color: #e2e8f0; }
body.dark .search-box input::placeholder { color: #475569; }

body.dark .tab { color: #94a3b8; }
body.dark .tab:hover { background: #1a3a2a; }
body.dark .tab.active { background: #4ade80; color: #fff; }

body.dark .modal input,
body.dark .modal select,
body.dark .link-box input,
body.dark .config-suporte-row input,
body.dark .login-box input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
body.dark .modal input:focus,
body.dark .modal select:focus,
body.dark .config-suporte-row input:focus,
body.dark .login-box input:focus {
  border-color: #4ade80;
  background: #1e293b;
}

body.dark .btn-cancelar,
body.dark .btn-fechar,
body.dark .btn-copiar,
body.dark .btn-sair {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
body.dark .btn-cancelar:hover,
body.dark .btn-fechar:hover,
body.dark .btn-copiar:hover { background: #334155; }

body.dark .btn-desativar { background: #1e293b; border-color: #7f1d1d; color: #f87171; }
body.dark .btn-desativar:hover { background: #2a0f0f; }

body.dark .btn-action { background: #0f2a1a; border-color: #166534; color: #4ade80; }
body.dark .btn-action:hover { background: #1a3a2a; border-color: #4ade80; }

body.dark .card-icon.purple { background: #2d1b69; color: #a78bfa; }
body.dark .card-icon.green  { background: #0f2a1a; color: #4ade80; }
body.dark .card-icon.red    { background: #2a0f0f; color: #f87171; }

body.dark .card-clickable:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.5); }

body.dark .pessoa-avatar { background: #1e1b4b; color: #a5b4fc; }

body.dark .badge.postou     { background: #0f2a1a; color: #4ade80; }
body.dark .badge.nao-postou { background: #2a0f0f; color: #f87171; }

body.dark .rel-dia { border-color: #334155; }
body.dark .rel-dia:hover { border-color: #1a4a2a; }
body.dark .rel-dia-detalhe { border-top-color: #334155; }
body.dark .rel-chevron { color: #475569; }
body.dark .rel-postou     { background: #0f2a1a; color: #4ade80; }
body.dark .rel-nao-postou { background: #2a0f0f; color: #f87171; }

body.dark .upload-area { border-color: #334155; color: #64748b; }
body.dark .upload-area:hover { border-color: #4ade80; background: #0f2a1a; color: #4ade80; }

body.dark .modal-icon-box { background: #0f2a1a; }

body.dark .login-page  { background: #0f172a; }
body.dark .painel-lider-page { background: #0f172a; }

body.dark .cal-dia    { color: #94a3b8; }
body.dark .cal-header { color: #475569; }
body.dark .cal-btn { background: #0f2a1a; border-color: #166534; }

body.dark .conteudo-row { border-bottom-color: #334155; }

body.dark input[type="date"],
body.dark select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
