/*CSS HANDLER */
/* Toggle Switch Container */
.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hide the checkbox */
.theme-toggle {
    display: none;
}

/* Toggle Label (the switch) */
.theme-toggle-label {
    width: 45px;
    height: 20px;
    display: inline-block;
    border: 2px solid var(--bg_text);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Toggle Circle */
.theme-toggle-circle {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--textColor);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: all 0.3s ease;
}

/* When checkbox is checked (dark theme) */
.theme-toggle:checked + .theme-toggle-label .theme-toggle-circle {
    transform: translateX(23px);
    background-color: var(--textColor3);
}

@media (max-width: 991px) {
    .theme-toggle-container {
        margin-left: auto;
        width: 80px;
        right: 0;
        justify-content: flex-start;
        padding-left: 13px;
        margin-bottom: 10px;
    }

    .theme-toggle-container p {
        padding-right: 13px;
    }

}