/* Wrapper */

.fbc_switch_wrapper {
    position: fixed;
    bottom: 5px;
    left: 5px;
    visibility: hidden;
}

.fbc_switch_wrapper.visible {
    visibility: visible;
}

.fbc_switch_wrapper.hidden {
    visibility: hidden;
}


/* Toggle container */

.toggle {
    position: relative;
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    width: 150px;
    height: 50px;
    background-color: #000000;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
	border: 2px solid #b5b5b5;
}

.toggle.dark-active {
    background-color: #ffffff;
}

.toggle:not(.dark-active) .option.dark {
    color: #ffffff;
}


/* Option buttons */

.option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    color: #000000;
}


/* Light & Dark button text */

.dark-active .dark {
    color: #fff;
}


/* Sliding active background */

.active-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    border-radius: 20px;
    background: white;
    border: 3px solid #00ff66;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 1;
}


/* Dark mode active → slide right */

.toggle.dark-active .active-indicator {
    transform: translateX(100%);
    background: black;
}


/* Background for page dark mode */

.bg-2d2d2d {
    background-color: #2d2d2d;
}