/* Modal Crimson & Ruby Red Edition */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(136, 19, 55, 0.6); /* Diubah menjadi tint Crimson transparan */
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFF1F2; /* Latar belakang soft crimson yang bersih */
  border: 1px solid #FECDD3; /* Border rose/crimson halus */
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(136, 19, 55, 0.12); /* Bayangan berbasis warna Crimson */
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.show .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #FECDD3; /* Pemisah halus warna rose/crimson */
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #4C0519; /* Warna Deep Crimson pekat untuk teks utama */
}

.modal-message {
  font-size: 16px;
  line-height: 1.5;
  color: #9F1239; /* Warna muted crimson rose untuk teks pesan */
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

/* Tombol Sekunder (Batal) */
.modal-btn-secondary {
  background: #FFE4E6;
  color: #881337;
  border: 1px solid #FECDD3;
}

.modal-btn-secondary:hover {
  background: #FEE2E2;
  border-color: #881337; /* Border berubah menjadi Crimson saat hover */
}

/* Tombol Bahaya (Hapus) - Menggunakan merah kirmizi pekat agar kontras dan tegas */
.modal-btn-danger {
  background: #991B1B;
  color: white;
}

.modal-btn-danger:hover {
  background: #7F1D1D;
}

/* Tombol Utama (Confirm) */
.modal-btn-primary {
  background: linear-gradient(135deg, #881337 0%, #E11D48 100%); /* Gradasi Premium Crimson ke Ruby Red */
  color: white;
  box-shadow: 0 4px 8px rgba(225, 29, 72, 0.25); /* Bayangan lembut Ruby Red */
}

.modal-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 12px rgba(225, 29, 72, 0.35);
}

.modal-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: #E11D48; /* Ikon menggunakan warna Ruby Red sebagai penanda aksen */
}