/* Variáveis CSS para Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-section: #1e1e1e;
    --border-color: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-label: #b0b0b0;
    --border-light: #2a2a2a;
    --bg-select: #2a2a2a;
    --border-input: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --toggle-bg-off: #555;
    --toggle-circle: #ffffff;
  }
}

/* --- Layout dos Cards de Seção --- */
.notificationSettings-page .form-section {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: 0 3px 6px var(--shadow);
}

.notificationSettings-page .form-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

/* --- ESTILO DO TOGGLE (BOTÃO LIGA/DESLIGA) --- */

.notificationSettings-page .form-group-toggle {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.notificationSettings-page .form-group-toggle:last-child {
  margin-bottom: 0;
}

/* O container do 'botão' */
.notificationSettings-page .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

/* Esconde o checkbox real */
.notificationSettings-page .toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

/* O 'trilho' cinza do switch */
.notificationSettings-page .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-bg-off);
  border-radius: 34px;
  transition: 0.4s;
}

/* O 'círculo' branco do switch */
.notificationSettings-page .slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--toggle-circle);
  border-radius: 50%;
  transition: 0.4s;
}

/* O estado 'LIGADO' (checked) */
.notificationSettings-page .toggle-switch input:checked + .slider {
  background-color: #0d6efd;
}

/* Animação do círculo para 'LIGADO' */
.notificationSettings-page .toggle-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* --- Texto ao lado do Toggle --- */
.notificationSettings-page .toggle-label {
  flex-grow: 1;
}

.notificationSettings-page .toggle-label strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 24px;
}

.notificationSettings-page .toggle-label p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

/* --- Seção de Configurações de E-mail (Selects) --- */
.notificationSettings-page .form-section .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.notificationSettings-page .form-group .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.notificationSettings-page .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background-color: var(--bg-select);
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* --- Botão de Salvar --- */
.notificationSettings-page .form-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
