/**
 * Styles pour le frontend
 */

.wp-llm-blocks-chat {
    max-width: 600px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-llm-blocks-chat-header {
    background: #f5f5f5;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.wp-llm-blocks-chat-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.wp-llm-blocks-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
}

.wp-llm-blocks-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    max-width: 80%;
}

.wp-llm-blocks-message-user {
    background: #e3f2fd;
    margin-left: auto;
    text-align: right;
}

.wp-llm-blocks-message-assistant {
    background: #f5f5f5;
    margin-right: auto;
}

.wp-llm-blocks-message-system {
    background: #fff3e0;
    margin: 0 auto 16px;
    text-align: center;
    max-width: 100%;
}

.wp-llm-blocks-message-error {
    background: #ffebee;
    margin: 0 auto 16px;
    text-align: center;
    max-width: 100%;
    color: #c62828;
}

.wp-llm-blocks-message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.wp-llm-blocks-chat-input {
    display: flex;
    padding: 16px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.wp-llm-blocks-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
}

.wp-llm-blocks-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.wp-llm-blocks-send-button {
    margin-left: 12px;
    padding: 12px 20px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.wp-llm-blocks-send-button:hover {
    background: #1976d2;
}

.wp-llm-blocks-send-button:disabled {
    background: #bbdefb;
    cursor: not-allowed;
}

.wp-llm-blocks-error {
    color: #c62828;
    font-style: italic;
}