.ai-post-widget {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ai-post-chat {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.ai-post-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.ai-post-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 80%;
}

.ai-post-message-user {
    background: #007cba;
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-post-message-ai {
    background: white;
    border: 1px solid #ddd;
}

.ai-post-message-system {
    background: #e3f2fd;
    color: #1976d2;
    font-style: italic;
}

.ai-post-message-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.ai-post-input-container {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #ddd;
    gap: 10px;
}

.ai-post-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.ai-post-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.ai-post-button:hover:not(:disabled) {
    opacity: 0.9;
}

.ai-post-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}