/* =============================================================================
 *  Maw3idi — « Mon lien d'accès direct » (doctor own link)
 *  Styles de la fenêtre et du bouton.
 *  Aucune couleur nouvelle : on réutilise les variables du site
 *  (--navy, --gold, --green, --danger, --muted, --border, --background, --white).
 * ========================================================================== */

/* ---------- Bouton dans l'onglet « Profil » du tableau de bord ---------- */
.dow-trigger-box {
  margin: 18px 0 4px;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  text-align: center;
}
.dow-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Boutons ---------- */
.dow-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.dow-btn:hover { background: var(--navy-light); }
.dow-btn:active { transform: scale(0.98); }
.dow-btn.primary { width: 100%; }
.dow-btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.dow-btn.ghost:hover { border-color: var(--navy); }

/* ---------- Fenêtre (modale) ---------- */
.dow-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dow-modal[hidden] { display: none; }
.dow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 35, 64, 0.55);
}
.dow-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 24px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(13, 35, 64, 0.22);
}
.dow-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.dow-panel h3 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: 21px;
}
.dow-text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.dow-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.dow-panel input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f9fc;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: var(--text);
}
.dow-message {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}
.dow-message.ok { color: var(--green); }
.dow-message.error { color: var(--danger); }
.dow-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.dow-actions .dow-btn { width: 100%; }
.dow-note {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #f0d9a2;
  color: #795b18;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Variante mobile ---------- */
@media (max-width: 420px) {
  .dow-panel { padding: 22px 18px; }
  .dow-actions { grid-template-columns: 1fr; }
}
