@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

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

/* ===== TOKENS ===== */
:root {
  /* Cor */
  --red:          #FF2D2D;
  --red-dark:     #CC1111;
  --red-dim:      rgba(255,45,45,0.12);

  /* Auth / Perfil (light) */
  --bg-light:     #F7F5F2;
  --card-light:   #FFFFFF;
  --border-light: #E5E1DB;

  /* Admin (dark) */
  --bg-dark:      #0F0F0F;
  --surface:      #181818;
  --surface-2:    #222222;
  --border-dark:  #2C2C2C;

  /* Texto */
  --text-hi:      #1A1A1A;
  --text-lo:      #6B6B6B;
  --text-inv:     #F7F5F2;
  --text-inv-lo:  #888888;

  /* Semântica */
  --success:      #2D6A4F;
  --success-bg:   #D1FAE5;
  --warning:      #B7791F;
  --warning-bg:   #FEF3C7;
  --danger:       #9B1C1C;
  --inactive:     #6B6B6B;

  /* Forma */
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;

  /* Sombra */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow:       0 4px 16px rgba(0,0,0,0.10);
}

/* ===== BASE ===== */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-hi);
  background: var(--bg-light);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100vh;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}

/* ===== ANIMAÇÃO DE ENTRADA ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Escalonamento para filhos diretos */
.animate-in > * { opacity: 0; animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-in > *:nth-child(1) { animation-delay: 0.05s; }
.animate-in > *:nth-child(2) { animation-delay: 0.12s; }
.animate-in > *:nth-child(3) { animation-delay: 0.19s; }
.animate-in > *:nth-child(4) { animation-delay: 0.26s; }
.animate-in > *:nth-child(5) { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in, .animate-in > * { animation: none; opacity: 1; }
}

/* ===== AUTH — LAYOUT ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: var(--bg-light);
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

/* ===== AUTH — LOGO ===== */
.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--red);
  letter-spacing: 4px;
  line-height: 1;
}

.auth-logo p {
  font-size: 0.8rem;
  color: var(--text-lo);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ===== AUTH — CARD ===== */
.auth-card {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-hi);
  margin-bottom: 28px;
}

/* ===== FORMULÁRIO ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-hi);
  margin-bottom: 7px;
}

.opcional {
  font-weight: 400;
  color: var(--text-lo);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-hi);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

/* ===== TOGGLE SEXO ===== */
.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 11px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--text-lo);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}

/* ===== BOTÕES ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s, transform 0.12s;
}

.btn-primary:hover  { background: var(--red-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: var(--text-hi);
  margin-top: 8px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}


/* btn-secondary dentro de contexto dark */
.painel-layout .btn-secondary,
.modal .btn-secondary {
  border-color: var(--border-dark);
  color: var(--text-inv);
  background: transparent;
}

.painel-layout .btn-secondary:hover,
.modal .btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn-ghost {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: var(--text-inv-lo);
  transition: all 0.18s;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-aprovar {
  padding: 6px 14px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.18s;
}

.btn-aprovar:hover { opacity: 0.85; }

.btn-danger {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.18s;
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* ===== AUTH LINK ===== */
.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-lo);
}

.auth-link a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover { text-decoration: underline; }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-pending  { background: var(--warning-bg); color: var(--warning); }
.badge-active   { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: #F3F4F6; color: var(--inactive); }

/* ===== TAGS DE AVISO ===== */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tag-aviso    { background: rgba(183,121,31,0.15); color: var(--warning); }
.tag-evento   { background: rgba(45,106,79,0.15);  color: var(--success); }
.tag-culto    { background: var(--red-dim);         color: var(--red); }
.tag-campanha { background: rgba(99,102,241,0.12); color: #5B5BD6; }

/* ===== PAINEL ADMIN — LAYOUT ===== */
.painel-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 232px;
  background: var(--surface);
  border-right: 1px solid var(--border-dark);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 3px;
  padding: 4px 8px 28px;
  text-align: center;
}

.sidebar-section {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-inv-lo);
  letter-spacing: 0.8px;
  padding: 8px 10px 4px;
  margin-top: 8px;
}

.sidebar-item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-inv-lo);
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-item:hover {
  background: var(--surface-2);
  color: var(--text-inv);
}

.sidebar-item.active {
  background: var(--red-dim);
  color: var(--red);
  font-weight: 600;
}

.sidebar-item.active .icon { opacity: 1; }

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

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  padding: 36px 32px;
  overflow-y: auto;
  color: var(--text-inv);
}

.page-header {
  margin-bottom: 32px;
}

.page-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text-inv);
  line-height: 1.2;
}

.page-header p {
  color: var(--text-inv-lo);
  font-size: 0.88rem;
  margin-top: 5px;
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--red); }

.stat-card .label {
  font-size: 0.78rem;
  color: var(--text-inv-lo);
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-inv);
  line-height: 1;
}

/* ===== TABELA ===== */
.table-container {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  background: var(--surface-2);
  color: var(--text-inv);
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
}

.search-input::placeholder { color: var(--text-inv-lo); }

.filter-select {
  padding: 9px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  background: var(--surface-2);
  color: var(--text-inv);
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--red);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-inv-lo);
  border-bottom: 1px solid var(--border-dark);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-dark);
  vertical-align: middle;
  color: var(--text-inv);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background 0.15s;
}

tbody tr:hover { background: var(--surface-2); }

/* ===== AVATAR & MEMBER CELL ===== */
.member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

.member-name  { font-weight: 500; }
.member-email { font-size: 0.8rem; color: var(--text-lo); }

/* dark context */
.dark .member-email,
body.dark .member-email { color: var(--text-inv-lo); }

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

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.2s ease both;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  color: var(--text-inv);
}

.modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-inv);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.88rem;
  gap: 12px;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-inv-lo); flex-shrink: 0; }
.detail-value { color: var(--text-inv); text-align: right; }

/* ===== AVISOS — ADMIN ===== */
.avisos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.aviso-card {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.aviso-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.aviso-card.inativo {
  opacity: 0.5;
}

.aviso-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.aviso-titulo {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-inv);
  line-height: 1.3;
}

.aviso-conteudo {
  font-size: 0.85rem;
  color: var(--text-inv-lo);
  line-height: 1.55;
  margin-bottom: 14px;
}

.aviso-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-inv-lo);
}

/* ===== PERFIL MEMBRO — PAINEL ===== */
.perfil-page {
  background: var(--bg-light);
  min-height: 100vh;
}

.perfil-header {
  background: var(--text-hi);
  color: var(--text-inv);
  padding: 28px 24px 48px;
  position: relative;
}

.perfil-header-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.perfil-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
}

.perfil-header .cargo {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}

.perfil-body {
  max-width: 540px;
  margin: -20px auto 0;
  padding: 0 20px 40px;
  position: relative;
  z-index: 1;
}

.perfil-card {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.perfil-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-lo);
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

/* ===== AVISOS — MEMBRO ===== */
.aviso-membro {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.aviso-membro:last-child { border-bottom: none; }

.aviso-membro-titulo {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-hi);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aviso-membro-corpo {
  font-size: 0.84rem;
  color: var(--text-lo);
  line-height: 1.5;
}

.aviso-membro-data {
  font-size: 0.76rem;
  color: var(--text-lo);
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  padding: 32px 0;
  color: var(--text-lo);
  font-size: 0.88rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-hi);
  color: var(--text-inv);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--red); }

/* ===== CONFIRMAÇÃO ===== */
.confirmacao-icon {
  width: 64px;
  height: 64px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
}

.mobile-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 2px;
}

.btn-menu {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-inv);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ===== OVERLAY MENU MOBILE ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 190;
  animation: fadeIn 0.2s ease;
}

.sidebar-overlay.visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .mobile-nav { display: flex; }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    width: 240px;
    z-index: 200;
    transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding-top: 20px;
  }

  .sidebar.aberto {
    left: 0;
    box-shadow: 8px 0 32px rgba(0,0,0,0.4);
  }

  #btn-menu    { display: flex !important; }
  #btn-fechar-menu { display: block !important; }

  .main-content {
    padding: 76px 16px 24px;
  }

  table thead { display: none; }

  table tbody td {
    display: block;
    padding: 8px 14px;
    border-bottom: none;
    color: var(--text-inv);
  }

  table tbody tr {
    display: block;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--surface);
  }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .avisos-grid { grid-template-columns: 1fr; }

  .modal { padding: 24px 20px; }

  .modal-actions { justify-content: stretch; }
  .modal-actions > * { flex: 1; }

  .auth-card { padding: 28px 20px; }

  .perfil-body { padding: 0 14px 32px; }
}

@media (min-width: 769px) {
  #btn-menu { display: none !important; }
}

/* ===== ADMIN TEMA CLARO ===== */
body.admin-light .painel-layout,
body.admin-light.painel-layout {
  background: var(--bg-light);
}

body.admin-light .sidebar {
  background: var(--card-light);
  border-right-color: var(--border-light);
}

body.admin-light .sidebar-logo { color: var(--red); }

body.admin-light .sidebar-section { color: var(--text-lo); }

body.admin-light .sidebar-item {
  color: var(--text-lo);
}

body.admin-light .sidebar-item:hover {
  background: var(--bg-light);
  color: var(--text-hi);
}

body.admin-light .sidebar-item.active {
  background: var(--red-dim);
  color: var(--red);
}

body.admin-light #btn-fechar-menu { color: var(--text-hi) !important; }

body.admin-light .mobile-nav {
  background: var(--card-light);
  border-bottom-color: var(--border-light);
}

body.admin-light .mobile-nav-logo { color: var(--red); }

body.admin-light .btn-menu span { background: var(--text-hi); }

body.admin-light .main-content { color: var(--text-hi); }

body.admin-light .page-header h2 { color: var(--text-hi); }
body.admin-light .page-header p  { color: var(--text-lo); }

body.admin-light .stat-card {
  background: var(--card-light);
  border-color: var(--border-light);
}
body.admin-light .stat-card .label { color: var(--text-lo); }
body.admin-light .stat-card .value { color: var(--text-hi); }

body.admin-light .table-container {
  background: var(--card-light);
  border-color: var(--border-light);
}

body.admin-light .table-toolbar { border-bottom-color: var(--border-light); }

body.admin-light .search-input {
  background: var(--bg-light);
  border-color: var(--border-light);
  color: var(--text-hi);
}
body.admin-light .search-input::placeholder { color: var(--text-lo); }

body.admin-light .filter-select {
  background: var(--bg-light);
  border-color: var(--border-light);
  color: var(--text-hi);
}

body.admin-light thead th {
  color: var(--text-lo);
  border-bottom-color: var(--border-light);
}

body.admin-light tbody td {
  color: var(--text-hi);
  border-bottom-color: var(--border-light);
}

body.admin-light tbody tr:hover { background: var(--bg-light); }

body.admin-light table tbody tr {
  border-color: var(--border-light);
  background: var(--card-light);
}

body.admin-light .member-email { color: var(--text-lo); }

body.admin-light .modal {
  background: var(--card-light);
  border-color: var(--border-light);
  color: var(--text-hi);
}

body.admin-light .modal h3 { color: var(--text-hi); }

body.admin-light .detail-row { border-bottom-color: var(--border-light); }
body.admin-light .detail-label { color: var(--text-lo); }
body.admin-light .detail-value { color: var(--text-hi); }

body.admin-light .modal .btn-secondary {
  border-color: var(--border-light);
  color: var(--text-hi);
}
body.admin-light .modal .btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

body.admin-light .aviso-card {
  background: var(--card-light);
  border-color: var(--border-light);
}
body.admin-light .aviso-titulo  { color: var(--text-hi); }
body.admin-light .aviso-conteudo { color: var(--text-lo); }
body.admin-light .aviso-footer  { color: var(--text-lo); }

body.admin-light .btn-ghost {
  border-color: var(--border-light);
  color: var(--text-lo);
}

body.admin-light .empty-state { color: var(--text-lo); }

body.admin-light .painel-layout .btn-secondary,
body.admin-light table .btn-secondary,
body.admin-light .actions .btn-secondary {
  border-color: var(--border-light) !important;
  color: var(--text-hi) !important;
  background: transparent !important;
}
body.admin-light .painel-layout .btn-secondary:hover,
body.admin-light table .btn-secondary:hover,
body.admin-light .actions .btn-secondary:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
}

/* selects dentro do modal no tema claro */
body.admin-light #select-cargo,
body.admin-light #select-role {
  background: var(--bg-light) !important;
  border-color: var(--border-light) !important;
  color: var(--text-hi) !important;
}

/* toggle button */
.btn-tema {
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-inv-lo);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.18s, color 0.18s;
  text-align: left;
}

.btn-tema:hover {
  background: var(--surface-2);
  color: var(--text-inv);
}

body.admin-light .btn-tema {
  color: var(--text-lo);
}

body.admin-light .btn-tema:hover {
  background: var(--bg-light);
  color: var(--text-hi);
}