/*# sourceMappingURL=custom.min.css.map */
/* Gaya untuk switch */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Slider before it's checked */
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Slider when checked */
input:checked + .slider {
  background-color: #00ff00;
}

/* Move the slider when checked */
input:checked + .slider:before {
  transform: translateX(26px);
}

// untuk loading
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* Container loading yang mencakup seluruh layar */
.loading-container {
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Transparansi background */
  z-index: 9999;
  display: flex;
  justify-content: center; /* Untuk menempatkan konten di tengah secara horizontal */
  align-items: center; /* Untuk menempatkan konten di tengah secara vertikal */
  flex-direction: column; /* Atur posisi teks loading di bawah gambar */
  opacity: 1;
  transition: opacity 1s ease; /* Animasi transisi smooth untuk opacity */
}

/* Saat preloader hilang, opacity jadi 0 */
.loading-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Ukuran dan tampilan logo */
.loading-container img {
  width: 150px;
  height: auto;
  animation: rotate 2s linear infinite; /* Animasi putaran */
}

/* Teks loading di bawah logo */
.loading-container .loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* Animasi berputar untuk logo */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
