/* Modern Image Source Toggle Styles */
.image-source-toggle {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.image-source-toggle .toggle-option {
    position: relative;
    margin: 0;
}

.image-source-toggle .toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.image-source-toggle .toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.image-source-toggle .toggle-button svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.image-source-toggle .toggle-option:hover .toggle-button {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.image-source-toggle .toggle-option input[type="radio"]:checked + .toggle-button {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.image-source-toggle .toggle-option input[type="radio"]:checked + .toggle-button svg {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .image-source-toggle {
        display: flex;
        width: 100%;
    }
    
    .image-source-toggle .toggle-option {
        flex: 1;
    }
    
    .image-source-toggle .toggle-button {
        justify-content: center;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}
