/* Loading State */
body.loading {
  cursor: progress;
}
body.show-modal {
  cursor: default;
}

/* Modal Daftar Perawat */
.modal-daftar-perawat {
  display: none;
  position: fixed; /* ubah dari absolute ke fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* bisa juga pakai min-height: 100vh */
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  padding: 40px 0;
  overflow-y: auto;
}

.modal-daftar-perawat-content {
  background-color: #fff;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-daftar-perawat-content h2 {
  font-size: 20px;
}

.modal-daftar-perawat-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.modal-daftar-perawat-close:hover {
  color: #000;
}

/* Form */
.form-group {
  margin-bottom: 5px;
}

label {
  font-size: 12px;
  color: gray;
}

input,
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

input::placeholder,
textarea::placeholder {
  color: #888;
  font-style: italic;
}

.modal-daftar-perawat-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Tombol Umum */
button {
  padding: 10px 15px;
  border: none;
  background-color: #28a745;
  color: white;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

.btn-secondary {
  background-color: #6c757d;
}
.btn-secondary:hover {
  background-color: #5a6268;
}

/* Konfirmasi Keluar Modal */
.konfirmasi-daftar-perawat {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.konfirmasi-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  z-index: 10002;
  width: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.konfirmasi-content p {
  margin-bottom: 20px;
}

.konfirmasi-aksi {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.konfirmasi-aksi button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width:100%;
}

.konfirmasi-aksi button:first-child {
  background-color: #dc3545;
  color: white;
}

.konfirmasi-aksi button:last-child {
  background-color: #6c757d;
  color: white;
}


/* Efek blur seluruh halaman saat modal tampil
body.blur-bg > *:not(.modal-daftar-perawat):not(.konfirmasi-daftar-perawat):not(script):not(style) {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}
 */


/* Responsive */
@media (max-width: 768px) {
  .modal-daftar-perawat-content h2 {
    font-size: 14px;
  }
}
