﻿.ai-button {
    position: absolute;
    top: 40px;
    right: 15px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 100%);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

    .ai-button i {
        font-size: 16px;
        transition: transform 0.3s ease-in-out;
    }

    .ai-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }

    .ai-button::after {
        content: attr(data-tooltip);
        visibility: hidden;
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        text-align: center;
        padding: 8px 12px;
        border-radius: 8px;
        position: absolute;
        bottom: 50px;
        right: 0;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 14px;
        font-family: 'Google Sans', Arial, sans-serif;
    }

    .ai-button:hover::after {
        visibility: visible;
        opacity: 1;
    }

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
