/* Floating Assistant Button - Dedicated File */
.floating-assistant {
    position: fixed;
    bottom: 30px; /* Aligned with Back-to-Top */
    z-index: 9999;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force Left for RTL (Arabic) */
.rtl .floating-assistant,
[dir="rtl"] .floating-assistant {
    left: 30px !important;
    right: auto !important;
}

/* Force Right for LTR (English) */
.ltr .floating-assistant,
[dir="ltr"] .floating-assistant {
    right: 30px !important;
    left: auto !important;
}

.floating-assistant:hover .assistant-content {
    transform: scale(1.1);
}

.assistant-content {
    position: relative;
    width: 60px;
    height: 60px;
    background: #f02f2f;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.assistant-content i {
    font-size: 24px;
    color:#ffffff; 
    z-index: 3;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #f02f2f; /* Secondary Gold Color to match text */
    animation: floating-pulse 2s infinite;
    z-index: 1;
}

.curved-text-svg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    animation: rotate-text 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Text Color Updated to Gold */
.curved-text-svg textPath {
    fill: #f02f2f !important; /* Secondary Gold Color */
}

@keyframes floating-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes rotate-text {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .floating-assistant {
        bottom: 20px;
    }

    .rtl .floating-assistant,
    [dir="rtl"] .floating-assistant {
        left: 20px !important;
    }

    .ltr .floating-assistant,
    [dir="ltr"] .floating-assistant {
        right: 20px !important;
    }

    .assistant-content {
        width: 50px;
        height: 50px;
    }

    .assistant-content i {
        font-size: 20px;
    }

    .curved-text-svg {
        width: 84px;
        height: 84px;
        top: -17px;
        left: -17px;
    }
    
    /* Adjust text offset/size if needed for smaller circle - staying safe with defaults for now unless user complains */
}
