/* The switch - the box around the slider */
.switch {
    --width-of-switch: 3.5em;
    --height-of-switch: 2em;
    /* size of sliding icon -- sun and moon */
    --size-of-icon: 1.4em;
    /* it is like a inline-padding of switch */
    --slider-offset: 0.3em;
    position: relative;
    width: var(--width-of-switch);
    height: var(--height-of-switch);
    margin-bottom: 0;
}

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

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eaeaea;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: var(--size-of-icon,1.4em);
    width: var(--size-of-icon,1.4em);
    border-radius: 20px;
    left: var(--slider-offset,0.3em);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(40deg,#ff0080,#ff8c00 70%);
;
    transition: .4s;
}

input:checked + .slider {
    background-color: #303136;
}

input:checked + .slider:before {
    left: calc(100% - (var(--size-of-icon,1.4em) + var(--slider-offset,0.3em)));
    background: #303136;
    /* change the value of second inset in box-shadow to change the angle and direction of the moon  */
    box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
}

/* =========================================================
   FIX SIDEBAR — ALWAYS OPEN
========================================================= */

/* Desktop sidebar fixed width */
.sidebar {
    width: 260px !important;
    transform: translate3d(0,0,0) !important;
    left: 0 !important;
}

/* Main panel spacing */
.main-panel {
    width: calc(100% - 260px) !important;
    margin-left: 260px !important;
}

/* Prevent mini sidebar collapse */
body.sidebar-mini .sidebar {
    width: 260px !important;
}

body.sidebar-mini .main-panel {
    width: calc(100% - 260px) !important;
    margin-left: 260px !important;
}

/* Disable sidebar hiding animation */
.sidebar,
.main-panel {
    transition: all 0.25s ease !important;
}

/* Prevent overlay/sidebar close */
.off-canvas-sidebar,
.sidebar[data="blue"] {
    transform: translate3d(0,0,0) !important;
}

/* Keep sidebar visible on large screens */
@media (min-width: 992px) {
    .sidebar {
        display: block !important;
    }

    .main-panel {
        overflow-x: hidden;
    }
}

/* Mobile behavior */
@media (max-width: 991px) {
    .sidebar {
        width: 260px !important;
    }

    .main-panel {
        margin-left: 0 !important;
        width: 100% !important;
    }
}