/* Mode Always-On OLED & Simulation Ecran Verrouille (iPhone / Android) - Whisp It */

html.ambient-active,
body.ambient-active {
  background-color: #000000 !important;
  background: #000000 !important;
}

.ambient-oled-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  background-color: #000000;
  /* Debord noir hors mise en page : couvre l ecart que certains iPhone laissent sous 100vh / 100dvh */
  box-shadow: 0 0 0 200px #000000;
  color: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: max(24px, calc(env(safe-area-inset-top, 24px) + 20px)) max(16px, env(safe-area-inset-right, 16px)) max(24px, calc(env(safe-area-inset-bottom, 24px) + 16px)) max(16px, env(safe-area-inset-left, 16px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
  user-select: none;
  box-sizing: border-box;
}

.ambient-oled-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Horloge Centrale Simulee iOS Lock Screen (Apparition progressive) */
.ambient-center-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10vh;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.ambient-oled-overlay.active .ambient-center-clock {
  opacity: 1;
  transform: translateY(0);
}

.ambient-clock-date {
  font-size: 17px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

.ambient-clock-time {
  font-size: 86px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", sans-serif;
}

/* Tiroir / Commandes au toucher (Masquees par defaut pour discretion totale) */
.ambient-footer-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
  opacity: 0;
  transition: opacity 0.8s ease 1.4s;
}

.ambient-oled-overlay.active .ambient-footer-controls {
  opacity: 1;
}

.ambient-action-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.ambient-action-bar.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Bouton unique et sobre Fin de Reunion */
.btn-ambient-end {
  width: 100%;
  padding: 15px 22px;
  border-radius: var(--radius-pill);
  background-color: #18181b;
  border: 1.5px solid #3f3f46;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none !important;
  transition: var(--transition-fast);
}

.btn-ambient-end:hover {
  background-color: #27272a;
  border-color: #52525b;
}

.btn-ambient-end:active {
  transform: scale(0.985);
  background-color: #09090b;
}

/* Barre home iOS discrete au bas de l ecran */
.ambient-home-indicator {
  width: 48px;
  height: 4px;
  background-color: #27272a;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

/* Elements fixes de l application masques pendant le mode reunion (aucune barre ne transparait) */
body.ambient-active .bottom-nav-bar,
body.ambient-active .speed-dial-wrapper,
body.ambient-active .speed-dial-backdrop {
  visibility: hidden !important;
}
