/* --- STYLE UNTUK MODAL MELAYANG (OVERLAY) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Membuat latar belakang agak gelap */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Memaksa modal berada di paling atas layar */
}

/* --- KOTAK MODAL UTAMA --- */
.modal-box {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

/* --- BAGIAN ATAS MODAL --- */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

/* --- TOMBOL SILANG (CLOSE) --- */
.close-btn {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #dc3545; /* Berubah merah saat disentuh mouse */
}

/* --- BAGIAN ISI MODAL --- */
.modal-body {
  font-size: 1rem;
  color: #212529;
  margin-bottom: 20px;
}

/* --- BAGIAN TOMBOL BAWAH --- */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px; /* Jarak antar tombol Close dan Login */
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
}

/* Efek animasi muncul lancar */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
