/* Elementor Color Swapper - Frontend Styles */

.ecs-toggle-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    background: var(--e-global-color-primary, #333);
    color: var(--e-global-color-cf0a6e6, #fff);
    border: 2px solid var(--e-global-color-accent, #666);
    border-radius: 50px;
    
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ecs-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ecs-toggle-button:active {
    transform: translateY(0);
}

.ecs-toggle-button .ecs-icon {
    font-size: 20px;
    line-height: 1;
}

.ecs-toggle-button.swapping {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation for smooth color transitions */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

* {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Loading spinner */
@keyframes ecs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ecs-toggle-button.swapping .ecs-icon {
    animation: ecs-spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .ecs-toggle-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .ecs-toggle-button .ecs-label {
        display: none;
    }
}
