.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Import de la police Lato pour les dialogues */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");

.dialog-content {
  font-family: "Lato", sans-serif;
}

.dialog-content {
  background: rgba(255, 255, 255, 0.7);
  padding: 22px 22px 18px;
  border-radius: 16px;
  --dialog-width: 520px;
  width: var(--dialog-width);
  max-width: 95%;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Modal large pour listes (ex : liste des défunts) */
.dialog-content.dialog-large {
  --dialog-width: 1000px; /* ajuster si besoin */
}

/* Table dans les dialogues */
.dialog-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.dialog-content thead {
  background: #f3f3f3;
}
.dialog-content th,
.dialog-content td {
  padding: 8px 10px;
  border-bottom: 1px solid #e9e9e9;
  text-align: left;
}
.dialog-content td:last-child,
.dialog-content th:last-child {
  text-align: right;
}

/* iOS-like button styles */
:root {
  --ios-primary: #007aff;
  --ios-muted: #f1f2f6;
  --ios-danger: #ff3b30;
  --ios-text: #0b1226;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.997);
}

.btn-ghost {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(240, 240, 245, 0.6)
  );
  color: var(--ios-text);
  box-shadow:
    0 6px 18px rgba(11, 18, 38, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(11, 18, 38, 0.06);
}

.btn-primary {
  background: linear-gradient(180deg, var(--ios-primary), #0060d6);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.18);
}

.btn-danger {
  background: linear-gradient(180deg, var(--ios-danger), #e02d22);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.16);
}

/* Style spécifique pour les boutons fermer en rouge */
#btnCloseDialog,
#btnCloseListe {
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--ios-danger), #e02d22);
  color: white;
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.16);
  cursor: pointer;
}

#btnCloseDialog:active,
#btnCloseListe:active {
  transform: translateY(1px) scale(0.997);
}

.dialog-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--ios-text);
}

.dialog-content p.message {
  color: #333;
  margin-bottom: 8px;
}

.dialog-actions button {
  margin: 10px 5px 0;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#btnSendSMS {
  background: #76810f;
  color: white;
}
#btnSendMail {
  background: #0f4c81;
  color: white;
}
#btnCloseDialog {
  background: #ef4444;
  color: white;
}
