body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #300000; /* Burnt Red */
    color: white;
}

.login-container input {
    width: calc(50% - 20px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}

input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}

button {
    background-color: red;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.left-column {
    width: 20%;
    padding: 10px;
}

.left-column img {
    max-width: 100%; /* Ensures it does not exceed the left column width */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes extra spacing */
    margin-top: 90px; /* Adjust the value to aligh with the chatbox */
}

.right-column {
    width: 80%;
    padding: 20px;
}

.chat-content {
    display: flex;
    width: 80%;
    max-width: 1200px;
}

/* ✅ Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    height: 20vh; /* Adjusted to keep chat scrolling within viewport */
    justify-content: space-between; /* Ensures the chat stays above the input */
}

/* Chat Container styling */
#chat-container {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 10px auto;
    color: black;
    display: flex;
    flex-direction: column;
    height: 60vh; /* Adjust as needed */
    overflow: hidden;
}

/* Chat Box (thread) styling */
#chat-box {
    font-family: Arial, sans-serif;
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    color: black;
}

.chat-input-container {
    width: 100%;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #ccc;
}

#chat-input {
    width: 100%;
    min-height: 20px;
    max-height: 200px; /* Maximum height before scrolling */
    overflow-y: auto;  /* Enable vertical scrolling when content exceeds max-height */
    resize: none;      /* Prevent manual resizing */
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

/* Chat Message styling */
.message-container {
    margin-bottom: 10px;
}
.message {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.5;
}

/* ✅ Assistant Titles */
.chat-title {
    font-size: 1.2em;
    font-weight: bold;
}

/* Assistant Message Box styling */
.assistant-message {
    background-color: white;
    color: black;
    border-radius: 10px;
    padding: 10px;
    display: inline-block;
    max-width: 90%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* ✅ Properly format top-level list items */
.chat-list {
    margin: 5px 0;
    padding-left: 20px;
    list-style-type: disc; /* Ensure top-level bullets are visible */
}

/* ✅ Format nested lists correctly */
.chat-list ul {
    margin: 5px 0;
    padding-left: 20px;
    list-style-type: circle; /* Uses smaller bullet points for nested lists */
}

/* ✅ Remove the unnecessary `::before` rule */
.chat-list li ul li::before {
    content: none; /* Remove the manual hyphen since the browser handles bullets */
}

/* Headings */
h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0;
}

/* Code Block Styling */
pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: "Courier New", monospace;
}
code {
    font-size: 14px;
    color: #333;
}

/* Citation Styling */
em {
    font-size: 14px;
    color: gray;
}

#logout-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    padding: 10px;
}

.feedback-section {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: black;
    border-radius: 8px;
    text-align: center;
}

.feedback-section h3 {
    color: white;
}

textarea {
    width: 95%;
    height: 150px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
}

#user-email {
    width: 95%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
}

#send-feedback {
    background-color: #c0392b;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 30%;
    margin-top: 10px;
}

#send-feedback:hover {
    background-color: #a93226;
}
