@use "../utils" as *;

/*----------------------------
switcher design
------------------------------*/

.td-custom-switcher {
    .form-check {
        display: flex;
        align-items: center;
        position: relative;

        .form-check-input {
            display: none;

            &:checked+.form-check-label::before {
                background-color: #ffc107;
                transform: translateX(27px);
            }

            &:checked+.form-check-label {
                background-color: rgba(255, 200, 0, 0.5);
            }

            &-2{
                &:checked+.form-check-label::before {
                    background-color: var(--td-theme-color-2);
                    transform: translateX(27px);
                }
    
                &:checked+.form-check-label {
                    background-color: rgba(4, 154, 71,0.5);
                }
            }
        }

        .form-check-label {
            width: 50px;
            height: 15px;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 50px;
            position: relative;
            cursor: pointer;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s ease;

            &::before {
                content: '';
                width: 24px;
                height: 24px;
                background-color: #4a332b;
                border-radius: 50%;
                position: absolute;
                top: -5px;
                inset-inline-start: 0px;
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
                transition: all 0.3s ease;
            }
        }
    }
}