body {
    justify-content: center;
    align-items: center;
    height: 98vh;
    margin: 5px;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

#password {
    margin: 10px 0;
    padding: 8px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

#recaptcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    margin: auto;
    background: white;
}

#error-message {
    color: red;
    display: none;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f0f0f0;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

.assistant-message {
    background-color: #f0f0f0;
    color: black;
    align-self: flex-start;
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message code, .message pre {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
}

.token-count {
    color: #888;
    font-size: 0.8rem;
    text-align: right;
    width: 100%;
    display: block;
    margin-top: 5px;
}

.typing-animation {
    visibility: hidden;
    font-style: italic;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
    width: 100%;
}

.upload-container {
    display: flex;
    align-items: flex-start;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 10px 0;
    display: none;
}

#chat {
    display: none;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 98%;
    width: 95%;
    max-width: 1200px;
    margin: auto;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

#responses {
    max-height: 70%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#responses, #typing-animation {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#greeting {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #eeeeee;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

#question {
    flex-grow: 1;
    margin: 0;
}

.message img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media query */
@media (max-width: 600px) {
    #chat {
        height: 90%;
        width: 95%;
    }

    #responses, #typing-animation {
        margin-top: 10px;
        padding-top: 10px;
    }

    .message {
        padding: 8px;
        margin-bottom: 10px;
    }

    .message-container {
        align-items: center;
    }
}

/* Embedded styles */
body.embedded {
    background-color: transparent;
}

body.embedded #chat {
    background-color: transparent;
    box-shadow: none;
}

body.embedded #responses {
    background-color: transparent;
}

body.embedded .message {
    background-color: rgba(240, 240, 240, 0.8);
}

body.embedded .user-message {
    background-color: rgba(0, 123, 255, 0.8);
}

#uploadBtn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    height: 35px;  /* Match the height of submit button */
    display: flex;
    align-items: center;
}

#uploadBtn:hover {
    background: #e0e0e0;
}

#submitBtn {
    height: 35px;
    padding: 8px 16px;
    white-space: nowrap;
}

/* Add error banner styling */
.error-banner {
    background-color: #fee;
    border: 1px solid #f88;
    color: #c00;
    margin: 10px;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
    position: sticky;
    top: 10px;
    z-index: 100;
}

/* Remove old error message styling since we're not using it anymore */
#error-message {
    color: red;
    display: none;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
} 