﻿.ai-floating-container {
    position: fixed !important;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    pointer-events: auto;
}
/* FIXED: Remove @@ and change blue to cyan */
@keyframes aiBreath {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 1;
    }
}

@keyframes floatingPulse {
    0% {
        transform: scale(0.7);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.ai-master-btn {
    width: 40px;
    height: 40px;
    border: none !important;
    outline: none !important;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.15), rgba(128, 0, 255, 0.15)) !important;
}

.ai-logo {
    width: 36px;
    height: 36px;
}

/* NEW CHAT PANEL STYLES */
.ai-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-height: 70vh;
    background: rgba(15, 15, 45, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

    .ai-chat-panel.active {
        transform: translateX(0);
    }

.ai-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

    .ai-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(128, 0, 255, 0.1));
}

.ai-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.ai-chat-info h6 {
    margin: 0;
    color: #00ffff;
    font-size: 14px;
    font-weight: 700;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .close-btn:hover {
        color: #00ffff;
        background: rgba(0, 255, 255, 0.1);
    }

.ai-chat-messages {
    height: 340px;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #00ffff, #0088ff);
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #00ff88, #00cc66);
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-message .message-content {
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #e0e0ff;
}

.user-message .message-content {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #fff;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0, 255, 255, 0.5);
        animation: typing 1.4s infinite ease-in-out;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }

    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.ai-chat-input {
    display: flex;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

    .ai-chat-input input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid rgba(0, 255, 255, 0.3);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        color: #fff;
        font-size: 14px;
    }

        .ai-chat-input input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

    .ai-chat-input button {
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(135deg, #00ffff, #0088ff);
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        .ai-chat-input button:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }
