.chat-container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.chat-bubble {
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.chat-content {
    text-align: left;
    position: relative;
}

.chat-bubble.user .chat-content {
    text-align: right;
}

.chat-bubble.user {
    background-color: #6a1b9a;
    color: white;
    align-self: flex-end;
}

.chat-bubble.assistant {
    background-color: #e0e0e0;
    color: black;
    align-self: flex-start;
}

.chat-bubble.tool {
    background-color: #b0bec5; /* A blue-gray that's similar to assistant but distinct */
    color: #263238; /* Dark blue-gray text for good contrast */
    align-self: flex-start;
    border-left: 4px solid #78909c; /* Slightly darker blue-gray for the border */
    font-weight: 500; /* Slightly bolder text for better readability */
}



.chat-input-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 20px auto;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.chat-button {
    background-color: #6a1b9a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.chat-button:hover {
    background-color: #4a148c;
}

.error-container {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 20px auto;
    max-width: 600px;
}

.error-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.error-content {
    white-space: pre-wrap;
}

details {
    margin-top: 10px;
}

.think-summary {
    cursor: pointer;
    color: #6a1b9a;
    font-weight: bold;
}

.think-content {
    padding: 10px;
    background-color: #ede7f6;
    border-radius: 5px;
    margin-top: 5px;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.loading-ring {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    border-top-color: #6a1b9a;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
