/* --- AI CHAT STYLES --- */
.xdev-ia-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ia-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ia-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ia-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ia-message.ai {
    align-self: flex-start;
    background: #2d3748;
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.ia-message span {
    display: block;
    word-wrap: break-word;
}

.ia-input-area {
    padding: 15px;
    background: #1a202c;
    border-top: 1px solid #2d3748;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#ia-prompt {
    flex: 1;
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: border-color 0.2s;
}

#ia-prompt:focus {
    outline: none;
    border-color: #667eea;
}

#ia-prompt::placeholder {
    color: #718096;
}

#ia-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

#ia-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#ia-send-btn:active {
    transform: scale(0.95);
}

/* Scrollbar styling for chat history */
.ia-chat-history::-webkit-scrollbar {
    width: 8px;
}

.ia-chat-history::-webkit-scrollbar-track {
    background: #1a202c;
}

.ia-chat-history::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.ia-chat-history::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}