/* Mon Suivi Nutrition — styles des rappels et notifications */

/* ---- Toasts dans l'application ---- */
#toast-root {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
  pointer-events: none;
}

.toast {
  background: rgba(23, 37, 31, 0.94);
  color: #fff;
  border-radius: 16px;
  padding: 13px 16px;
  box-shadow: 0 10px 30px rgba(15, 26, 21, 0.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  border-left: 4px solid var(--c-accent);
  animation: toastin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.35s, transform 0.35s;
}

.toast.out { opacity: 0; transform: translateY(-14px); }

@keyframes toastin {
  from { opacity: 0; transform: translateY(-18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-title { font-weight: 800; font-size: 0.92rem; letter-spacing: -0.01em; }

.toast-body { font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); margin-top: 2px; }

/* ---- Réglages des rappels ---- */
.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.notif-row.master { border-bottom: none; padding-top: 2px; }

.notif-list { margin-top: 4px; }

.notif-list .notif-row:last-child { border-bottom: none; }

.notif-lbl { font-size: 0.88rem; font-weight: 600; }

.notif-ctrl { display: flex; align-items: center; gap: 10px; }

.input.time {
  width: auto;
  padding: 7px 10px;
  margin: 0;
  font-size: 0.85rem;
}

.input.time:disabled { opacity: 0.45; }

/* ---- Interrupteurs ---- */
.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex-shrink: 0; }

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  background: #d7ded9;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.slider::before {
  content: '';
  position: absolute;
  height: 21px;
  width: 21px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch input:checked + .slider { background: var(--c-accent); }

.switch input:checked + .slider::before { transform: translateX(19px); }

/* ---- Compte et synchronisation ---- */
.sync-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
}

.sync-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-soft);
  flex-shrink: 0;
}

.sync-msg {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-over);
  min-height: 1.1em;
  margin-top: 6px;
}
