/* Beta Components - Extracted from styles.css */

/* Beta Toggle Button - Maximum specificity to ensure footer positioning */
#beta-toggle-btn,
body #beta-toggle-btn,
html body #beta-toggle-btn,
.beta-toggle-button,
body .beta-toggle-button,
html body .beta-toggle-button {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important; /* Move to left side */
    top: auto !important; /* Explicitly remove top positioning */
    right: auto !important; /* Remove right positioning */
    z-index: 1000 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(8px);
}

.beta-toggle-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.beta-toggle-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.beta-icon {
    font-weight: bold;
    font-size: 16px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Beta mode specific styling */
[data-beta="1"] .beta-toggle-button {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

[data-beta="1"] .beta-toggle-button:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
}

/* Responsive adjustments - Maximum specificity */
@media (max-width: 768px) {
    #beta-toggle-btn,
    body #beta-toggle-btn,
    html body #beta-toggle-btn,
    .beta-toggle-button,
    body .beta-toggle-button,
    html body .beta-toggle-button {
        bottom: 15px !important;
        left: 15px !important; /* Move to left side on mobile */
        top: auto !important;
        right: auto !important; /* Remove right positioning */
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .beta-icon {
        font-size: 14px !important;
    }
}