/**
 * Ecran d'attente de maintenance et bandeau administrateur - Whisp It
 * Memes couleurs que la page de maintenance servie par le serveur (server/maintenance.js).
 */

.app-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 24px)) 24px max(24px, env(safe-area-inset-bottom, 24px));
  background: #f4f6f9;
  box-sizing: border-box;
}

.app-maintenance-overlay.active {
  display: flex;
}

html.app-maintenance-on,
html.app-maintenance-on body {
  overflow: hidden;
}

.app-maintenance-card {
  width: 100%;
  max-width: 420px;
  padding: 30px 26px;
  background: #ffffff;
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 22px;
  box-sizing: border-box;
  color: var(--text-primary, #0f172a);
}

.app-maintenance-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-maintenance-brand i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent-orange, #ff5e3a);
  vertical-align: 3px;
}

.app-maintenance-card h2 {
  margin: 22px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.app-maintenance-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  white-space: pre-line;
}

.app-maintenance-card .app-maintenance-until {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-orange, #ff5e3a);
}

.app-maintenance-card .app-maintenance-foot {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-muted, #5b6b82);
}

/* Bandeau discret pour l'administrateur pendant une maintenance */
.app-maintenance-admin {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 10px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: var(--radius-pill, 999px);
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  box-sizing: border-box;
  pointer-events: none;
}

.app-maintenance-admin[hidden] {
  display: none;
}

.app-maintenance-admin i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange, #ff5e3a);
  flex-shrink: 0;
}
