/* Switch Component */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    min-width: 48px;
    height: 24px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCC;
    transition: .3s;
    border-radius: 24px;
    box-shadow: 0 0 1px var(--shadow-color) inset;

}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFF;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 0 1px var(--shadow-color);

}

input:checked + .switch-slider {
    background-color: #24af6a;
}

input:focus + .switch-slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Switch sizes */
.switch.switch-sm {
    width: 36px;
    height: 18px;
}

.switch.switch-sm .switch-slider:before {
    height: 12px;
    width: 12px;
}

.switch.switch-sm input:checked + .switch-slider:before {
    transform: translateX(18px);
}

.switch.switch-lg {
    width: 60px;
    height: 30px;
}

.switch.switch-lg .switch-slider:before {
    height: 24px;
    width: 24px;
}

.switch.switch-lg input:checked + .switch-slider:before {
    transform: translateX(30px);
}

/* Switch with label */
.switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-label {
    font-size: 14px;
    color: var(--text-primary);
}

/* Switch colors */
.switch-primary input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch-success input:checked + .switch-slider {
    background-color: var(--success);
}

.switch-danger input:checked + .switch-slider {
    background-color: var(--danger);
}

.switch-warning input:checked + .switch-slider {
    background-color: var(--warning);
}