#voltada-ai-chat-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Chat Bubble button */
#voltada-ai-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #1FC8C2;
    border: 1px solid rgba(31, 200, 194, 0.3);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

#voltada-ai-bubble:hover {
    transform: scale(1.08);
    background-color: #1e293b;
    border-color: #1FC8C2;
}

#voltada-ai-bubble svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(31, 200, 194, 0.2));
}

/* Chat Window */
#voltada-ai-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: #0f172a;
    border: 1px solid rgba(31, 200, 194, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: voltadaSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes voltadaSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
#voltada-ai-header {
    background-color: #1e293b;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#voltada-ai-header .header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
}

#voltada-ai-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

#voltada-ai-close:hover {
    color: #f8fafc;
}

/* Messages Area */
#voltada-ai-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #090d16;
}

#voltada-ai-messages::-webkit-scrollbar {
    width: 6px;
}

#voltada-ai-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.message.assistant {
    align-self: flex-start;
    background-color: #1e293b;
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.message.user {
    align-self: flex-end;
    background-color: #1FC8C2;
    color: #0f172a;
    font-weight: 500;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 8px rgba(31, 200, 194, 0.2);
}

.message.error {
    background-color: #451a1a;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-items: center;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: voltadaBounce 1.4s infinite both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes voltadaBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Input Area */
#voltada-ai-input-area {
    padding: 12px 16px;
    background-color: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
}

#voltada-ai-input {
    flex-grow: 1;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s;
}

#voltada-ai-input:focus {
    border-color: #1FC8C2;
}

#voltada-ai-send {
    background: none;
    border: none;
    color: #1FC8C2;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

#voltada-ai-send:hover {
    color: #4df3ed;
}

#voltada-ai-send svg {
    width: 20px;
    height: 20px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #voltada-ai-window {
        width: calc(100vw - 32px);
        height: 400px;
        right: -8px;
    }
}
