/* AI BOT CSS */
#ai-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, sans-serif;
}

#ai-bot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3, #66c0f4);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    color: white;
    font-size: 24px;
}

#ai-bot-toggle:hover {
    transform: scale(1.1);
}

#ai-chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(20, 27, 34, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    transform-origin: bottom right;
    animation: botAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes botAppear {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#ai-chat-header {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar-header {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0071e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.4);
}

#ai-chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

#ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Scrollbar for Chat */
#ai-chat-messages::-webkit-scrollbar { width: 4px; }
#ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: #0071e3;
    color: #fff;
    border-bottom-right-radius: 4px;
}

#ai-chat-input-area {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

#ai-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 10px 18px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

#ai-chat-input:focus { border-color: #0071e3; }

#ai-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0071e3;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

#ai-chat-send:disabled { opacity: 0.4; cursor: default; }

.typing-indicator {
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    align-self: flex-start;
    display: none;
    align-items: center;
    gap: 4px;
}
.typing-dot {
    width: 6px; height: 6px; background: #888; border-radius: 50%;
    animation: dotPulse 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; }
}

@media (max-width: 480px) {
    #ai-chat-panel { width: 90vw; right: -10px; height: 75vh; }
}
