/* Mengubah warna background dan teks */
.select2-container--default .select2-selection--single {
  height: 40px;
  width: 100%;
}

/* Style untuk loader */
#loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  z-index: 1000;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  /* Ganti warna background sesuai kebutuhan */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0.6;
  /* animation-name: fadeIn;
    animation-duration: 2s;
    animation-iteration-count: infinite; */
  /* animation-direction: alternate; */
  /* animation-timing-function: ease-out; */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.custom-file-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px dashed #6c757d;
  padding: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
  transition: border-color 0.3s ease;
}

.custom-file-container:hover {
  border-color: #007bff;
}

.file-label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
  border: 1px solid #ced4da;
}

.file-label:hover {
  background-color: #f0f0f0;
  border-color: #007bff;
}

.file-label.file-selected {
  color: #000;
}

.file-placeholder {
  display: inline-block;
  flex-grow: 1;
}

.file-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #6c757d;
}

.browse-btn {
  padding: 5px 20px;
  border-radius: 5px;
}

input[type="file"] {
  display: none;
}

.img-preview {
  margin-top: 15px;
  max-width: 70px;
  max-height: 70px;
  display: none;
  border-radius: 5px;
}

.img-preview-show {
  margin-top: 15px;
  max-width: 70px;
  max-height: 70px;
  border-radius: 5px;
}

/* Efek zoom hanya pada gambar saat hover */
.modal-body img:hover {
  transform: scale(1.2); /* Memperbesar gambar */
}

.highlight {
  background-color: #ffe0e0; /* Merah muda */
}
