.btn-file-upload {
    position: relative;
    color: #ffff !important;
}

.btn-file-upload input {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    filter: alpha(opacity=0);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    opacity: 0;
    background-color: transparent;
    color: transparent;
    cursor: pointer;
}

.btn-custom-tools {
    position: relative;
    color: #fff;
    border: 0;
    margin: 0;
    border-radius: 3px;
    line-height: 24px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 15px;
    background-color: transparent;
    transition: 0.3s background-color 0s;
}

.btn-table-delete {
    display: none;
}

.btn-custom-tools:hover,
.btn-custom-tools:focus {
    color: #fff;
}

.card-data {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left-color: #9c27b0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: block;
    /* Hidden by default */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*spinner*/
.spinner-bounce {
    margin: 0 auto;
    width: 70px;
    text-align: center;
}

.spinner-bounce > div {
    width: 18px;
    height: 18px;
    background-color: #9c27b0;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner-bounce .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner-bounce .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

/* ── SIDEBAR MINIMIZE/MAXIMIZE TOGGLE ── */
#minimizeSidebar {
    position: absolute;
    top: 22px;
    right: 14px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #fbbf24;
    color: #062e2b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    z-index: 10;
}
#minimizeSidebar i {
    font-size: 18px;
    line-height: 1;
}
@media (max-width: 990px) {
    #minimizeSidebar {
        display: none !important;
    }
}

/* Mode mini custom (bukan pakai bawaan theme, karena struktur submenu
   collapse kita beda dari markup asli Material Dashboard) */
@media (min-width: 991px) {
    body.sidebar-mini .sidebar,
    body.sidebar-mini .sidebar .sidebar-wrapper {
        width: 80px !important;
    }
    body.sidebar-mini .main-panel {
        width: calc(100% - 80px) !important;
    }
    body.sidebar-mini .sidebar .logo .logo-text-wrap,
    body.sidebar-mini .sidebar .nav .nav-link p {
        display: none !important;
    }

    /* logo: geser mepet kiri (bukan center) supaya tidak ketimpa tombol
       toggle yang nempel di kanan sidebar */
    body.sidebar-mini .sidebar .logo {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* icon menu: matikan float bawaan theme (dihitung utk lebar 260px) supaya
       tidak mepet/kepotong di lebar 80px, ganti jadi center pakai flex */
    body.sidebar-mini .sidebar .nav .nav-item {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }
    body.sidebar-mini .sidebar .nav .nav-item .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.sidebar-mini .sidebar .nav .nav-item .nav-link i {
        float: none !important;
        margin-right: 0 !important;
        width: auto !important;
    }
}

/* ── TOGGLE SWITCH (custom-control custom-switch) ──
   Tema ini tidak menyertakan style bawaan Bootstrap utk .custom-switch,
   jadi checkbox-nya kelihatan kotak biasa. Ditambahkan manual di sini. */
.custom-control.custom-switch {
    position: relative;
    display: inline-block;
    min-height: 1.5rem;
    padding-left: 2.25rem;
}
.custom-switch .custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.custom-switch .custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}
.custom-switch .custom-control-label::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: -2.25rem;
    display: block;
    width: 1.75rem;
    height: 1rem;
    background-color: #d1d5db;
    border-radius: 0.5rem;
    transition: background-color .15s ease-in-out;
}
.custom-switch .custom-control-label::after {
    content: "";
    position: absolute;
    top: calc(0.15rem + 2px);
    left: calc(-2.25rem + 2px);
    width: calc(1rem - 4px);
    height: calc(1rem - 4px);
    background-color: #fff;
    border-radius: 50%;
    transition: transform .15s ease-in-out;
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #0F766E;
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(0.75rem);
}
.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 2px rgba(15, 118, 110, .25);
}