.serpace-rag-chat {
    background: linear-gradient(135deg, #1a1a2e 35%, #16213e 100%);
    border-radius: 18px;
    padding: 30px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    margin: 20px 0;
}

.serpace-rag-chat-editor {
    background: #f0f0f1;
    border: 2px dashed #9c27b0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #333;
}

.rag-chat-title {
    color: #cdb1f3;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-align: center;
}

.rag-chat-placeholder {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1rem;
}

.rag-chat-interface {
    margin-top: 20px;
}

.rag-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

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

.rag-message.user {
    background: #9c27b0;
    color: white;
    margin-left: auto;
    text-align: right;
}

.rag-message.assistant {
    background: rgba(255, 255, 255, 0.1);
    color: #e1dfff;
}

.rag-input-area {
    display: flex;
    gap: 10px;
}

.rag-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.rag-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.rag-send-btn {
    padding: 12px 20px;
    background: linear-gradient(90deg, #a4508b, #5f0a87);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rag-send-btn:hover {
    background: linear-gradient(90deg, #5f0a87, #a4508b);
    transform: translateY(-1px);
}

.rag-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rag-loading {
    color: #b8a9e6;
    font-style: italic;
}