/**
 * Vee Elementor Addons - Toggle Switch Styles
 */

/* Wrapper per il toggle e le etichette */
.vee-toggle-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Stile base per il toggle switch */
.vee-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Nascondi l'input checkbox predefinito */
.vee-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Stile dello slider */
.vee-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

/* Stile del pulsante cursore all'interno dello slider */
.vee-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

/* Stile dello slider quando il toggle è attivo */
.vee-toggle:checked + .vee-toggle-slider {
    background-color: #4CAF50;
}

/* Animazione del cursore quando il toggle è attivo */
.vee-toggle:checked + .vee-toggle-slider:before {
    transform: translateX(26px);
}

/* Stile arrotondato dello slider */
.vee-toggle-rounded {
    border-radius: 34px;
}

.vee-toggle-rounded:before {
    border-radius: 50%;
}

/* Stile quadrato dello slider */
.vee-toggle-square {
    border-radius: 4px;
}

.vee-toggle-square:before {
    border-radius: 2px;
}

/* Stile per le etichette */
.vee-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* Responsive design per schermi più piccoli */
@media screen and (max-width: 768px) {
    .vee-toggle-switch-wrapper {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .vee-toggle-switch {
        width: 50px;
        height: 28px;
    }
    
    .vee-toggle-slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }
    
    .vee-toggle:checked + .vee-toggle-slider:before {
        transform: translateX(22px);
    }
    
    .vee-toggle-label {
        font-size: 12px;
    }
}

/* Animazione per il cambio di stato */
.vee-toggle-slider:before {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.vee-toggle-slider {
    transition: background-color 0.3s ease;
}

/* Effetto focus per accessibilità */
.vee-toggle:focus + .vee-toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

/* Stile per il toggle disabilitato */
.vee-toggle:disabled + .vee-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stile per le etichette ON e OFF */
.vee-toggle-on-label {
    color: #4CAF50;
}

.vee-toggle-off-label {
    color: #777;
} 