/* Fix untuk toggle switch */
.fi-fo-toggle span.translate-x-5 {
    transform: none !important;
}

.fi-fo-toggle span.rtl\:-translate-x-5 {
    transform: none !important;
}

/* Perbaikan warna latar belakang toggle saat aktif */
.fi-fo-toggle.fi-color-primary {
    background-color: #37B0C0 !important;
}

/* Pastikan tombol toggle berada di dalam area toggle */
.fi-fo-toggle {
    position: relative;
    overflow: visible;
    width: 2.75rem !important; /* Pastikan lebar toggle cukup */
}

/* Perbaikan posisi tombol toggle */
.fi-fo-toggle span.pointer-events-none {
    position: absolute;
    top: 50%;
    margin-top: -0.625rem; /* Setengah dari tinggi tombol (1.25rem / 2) */
    height: 1.25rem !important;
    width: 1.25rem !important;
}

/* Perbaikan untuk mode gelap */
.dark .fi-fo-toggle.fi-color-primary {
    background-color: #37B0C0 !important;
}

/* Perbaikan untuk memastikan tombol toggle tidak keluar dari area toggle */
.fi-fo-toggle span.translate-x-5 {
    left: calc(100% - 1.25rem) !important;
}

.fi-fo-toggle span.translate-x-0 {
    left: 0 !important;
}