body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    background-color: #f0f0f0;
    margin: 0;
    padding: 2rem 10rem;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.logoContainer {
    width: 80%;
    display: flex;
    justify-content: flex-start;
    padding-left: 2.5rem;
}

.logo {
    margin-top: 20px;
    width: 9rem;  /* Adjust the width as needed */
    height: auto;
    margin-left: 1.5rem;
}

.title {
    margin-top: 10px;
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.chat-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 90%;  /* Increased width */
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px; /* Add some space between the title and chat container */
}

.chat-box {
    height: 500px;  /* Increased height */
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
}

.chat-box::-webkit-scrollbar {
    display: none;  /* Hide scrollbar in Webkit browsers */
}

.chat-box .user-message {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
}

.chat-box .bot-message {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: black;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
}

.chat-box .bot-message pre {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    overflow-x: auto;  /* Add horizontal scrolling */
    white-space: pre-wrap;  /* Allow wrapping */
    word-wrap: break-word;  /* Break long words */
    max-width: 100%;  /* Ensure it doesn't overflow the container */
    box-sizing: border-box;
}

.chat-box .bot-message .copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 2px;  /* Minimal padding */
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;  /* Adjusted font size */
    width: 36px;  /* Set width to make it square */
    height: 24px;  /* Set height to make it square */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-box .bot-message .copy-button:hover {
    background-color: #0056b3;
}

#user-input {
    padding: 15px;
    border: none;
    border-top: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}

button {
    padding: 15px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    width: 100%;
    border-top: 1px solid #ccc;
    outline: none;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}
