/* Modal Crimson & Ruby Red Edition */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 14, 22, 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: #F0C4C8; /* Latar belakang soft crimson yang bersih */
  border: 1px solid #F0C4C8; /* Border rose/crimson halus */
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(74, 14, 22, 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 #F0C4C8; /* Pemisah halus warna rose/crimson */
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2A080C; /* Warna Deep Crimson pekat untuk teks utama */
}

.modal-message {
  font-size: 16px;
  line-height: 1.5;
  color: #7A1F2B; /* 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: #F0C4C8;
  color: #4A0E16;
  border: 1px solid #F0C4C8;
}

.modal-btn-secondary:hover {
  background: #F0C4C8;
  border-color: #4A0E16; /* 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(180deg, #C45A68 0%, #8B2432 42%, #5C121C 100%); /* Gradasi Premium Crimson ke Ruby Red */
  color: white;
  box-shadow: 0 4px 8px rgba(155, 44, 58, 0.25); /* Bayangan lembut Ruby Red */
}

.modal-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 12px rgba(155, 44, 58, 0.35);
}

.modal-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: #9B2C3A; /* Ikon menggunakan warna Ruby Red sebagai penanda aksen */
}