/* HEX AI Chat Styles */
#hex-ai-chat-container {
    max-width: 500px;
    margin: 20px auto;
    border: 2px solid #667eea;
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hex-ai-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.hex-ai-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.hex-ai-chat-history {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.hex-ai-message {
    margin: 12px 0;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
}

.hex-ai-message strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hex-ai-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    text-align: right;
}

.hex-ai-ai {
    background: white;
    border: 1px solid #e9ecef;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hex-ai-error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    color: #d63031;
}

.hex-ai-chat-input-wrapper {
    display: flex;
    padding: 0;
    background: white;
}

.hex-ai-chat-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.hex-ai-chat-input::placeholder {
    color: #adb5bd;
}

.hex-ai-chat-send {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hex-ai-chat-send:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

.hex-ai-chat-send:active {
    transform: translateY(0);
}

.hex-ai-chat-send:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Loading animation */
.hex-ai-loading {
    background: #e9ecef;
    color: #6c757d;
    font-style: italic;
}

.hex-ai-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Scrollbar styling */
.hex-ai-chat-history::-webkit-scrollbar {
    width: 6px;
}

.hex-ai-chat-history::-webkit-scrollbar-track {
    background: #f1f3f4;
}

.hex-ai-chat-history::-webkit-scrollbar-thumb {
    background: #c1c8cd;
    border-radius: 3px;
}

.hex-ai-chat-history::-webkit-scrollbar-thumb:hover {
    background: #a8b3ba;
}

/* Responsive design */
@media (max-width: 600px) {
    #hex-ai-chat-container {
        margin: 10px;
        max-width: none;
    }
    
    .hex-ai-message {
        max-width: 90%;
    }
}
