body {
    font-family: 'Noto Sans', sans-serif;
    /*align-items: center; /* Center vertically */
    margin: 0; /* Remove default margin */
    background-color:#eee;
    color: #2d2d2d;
}

#content {
    margin-top: 1.5em;
}

.viewport {
    width: 60%;
    justify-content: center; /* Center horizontally */
    margin:auto;
}

.container {
    background-color: white;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px;
}

.centered-box {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.placeholder-message {
    font-style: italic;
    color: #888;
}

.centered-box.placeholder-message {
    height: 20rem;
}

#header {
    background-color: #2d2d2d;
    width: 100%;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

#header > div {
    padding: 10px;
}

#header img {
    height: 2em;
}

#header .header-text {
    position:relative;
    top:-0.6em;
    padding-left: 0.25em;
}

#header a {
    color:#96e0e8;
    font-weight: normal;
    font-size: smaller;
    margin-left: 1em;
}

#header .user-info {
    float: right;
    text-align: right;
    padding-right: 0.5em;
    font-size: smaller;
}
.welcome-index {
    text-align: center;
}

h1 img {
    height: 2em;
    position: relative;
    top: 0.4em;
}

.welcome-index h1 img {
    top: 0.6em;
}

.tab-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #f5f5f5;
}

.tab-button.active {
    border-bottom: 2px solid #00807b;
    color: #00807b;
}

.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
}

.tab-content.active {
    display: block;
}

#response-sources-container {
    display: flex;
    flex-direction: row; /* Adjust to lay out children side by side */
    gap: 20px; /* Adjust the gap between response and sources boxes as needed */
}
#response, #sources {
    padding: 10px;
    /*height: 300px; /* Adjust height as needed */
    overflow-y: auto;
}

#response {
    flex: 2
}

#response .translation-header {
    font-style: italic;
    font-size: smaller;
    margin-bottom: 0.5em;
}

#sources {
    flex: 1
}

#loadingMessage {
    display: none;
}

.source-stack {
    display: flex;
    flex-direction: column; /* Stack the children vertically */
    gap: 10px; /* Space between each source item */
}

.source-item {
    background-color: #f8f9fa; /* Light grey background, adjust as needed */
    border: 1px solid #dee2e6; /* Light grey border, adjust as needed */
    font-size: smaller;
    padding: 10px;
    text-align: left;

    display: flex;
    align-items: flex-start; /* Aligns items to the start of the flex container */
}

.source-item img {
    margin-right: 5px; /* Adds some space between the image and the text */
    width: auto; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-label {
    width: 150px; /* Adjust this value as needed */
    margin-right: 10px;
    text-align: right;
    font-size: smaller;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the input and the button */
    margin-bottom: 20px; /* More padding below the textbox */
}

.form-vertical {
    padding: 1rem 2rem;
    margin-top: 5%;
}

.form-inline input[type="text"] {
    font-size: 1.5rem; /* Larger font size for the input */
    flex-grow: 1; /* Input takes up the remaining space */
    padding: 7px; /* Increased padding inside the textbox */
}

.form-vertical input[type="text"], .form-vertical input[type="password"] {
    flex-grow: 1; /* Input takes up the remaining space */
    padding: 5px; /* Increased padding inside the textbox */
    min-width: 20em;
}

.form-inline textarea {
    width: 100%;
    height: 8em;
    flex-grow: 1;
    font-size: smaller;
    font-family: inherit;
    margin-top: 0.5em;
    padding: 5px;
}

.form-inline .debug-sidebar {
    flex-direction: column;
}

.btn {
    background-color: #00807b;
    color: white;
    border: none; /* Removes the default border */
    padding: 10px 20px; /* Adjust padding as needed */
    font-size: 1.2rem; /* Larger font size for the button text */
    cursor: pointer; /* Changes cursor to pointer on hover */
    border-radius: 5px; /* Rounded edges for the button */
}

.btn:hover {
    background-color: #00807b; /* Slightly darker blue on hover */
}

a, a:visited, a:hover, a:active {
    color: #00807b; /* Sets the link color to teal */
    text-decoration: none; /* Removes the underline from links */
}

.custom-modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.custom-close-button {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-close-button:hover,
.custom-close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.bot-select-container {
    display:flex;
}

.bot-select {
    flex: 1;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    margin: 2rem;
    min-width: 20rem;
}

.bot-select img {
    height: 15rem;
    width: 15rem;
}

#chart-container {
    min-height: 50px;
}

#chart-container #plot-div {
    width: 100%;
    min-height: 20rem;
}

#chat {
    flex: 4;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.chat-llm, .chat-human, .chat-example {
    display: flex;
}

.chat-human {
    align-items: center;
}

.chat-llm {
    padding-right: 10%;
}

.chat-message {
    border-radius: 0.5em;
    padding: 0.4em 0.5em;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.chat-llm .chat-message {
    margin-right: auto;
    background-color: white;
    color: #333;
    border: 1px solid #3ea6b2;
}

.edit-message-buttons {
    margin: 0 0.25rem 0 auto;
    visibility: hidden;
    width: 5rem;
    text-align: right;
}

.edit-message-buttons button {
    border: 0;
    background-color: transparent;
    color: #888;
    cursor: pointer;
    font-size: larger;
    padding-left: 0;
    padding-right: 0;
}

.chat-human:hover .edit-message-buttons {
    visibility: visible;
}

.chat-human .chat-message {
    background-color: #3ea6b2;
    color: white;
}

.chat-error p {
    border-color: #f86d67;
}

.chat-example .chat-message {
    background-color: #999;
    color: white;
    margin-left: auto;
    cursor: pointer;
}

.chat-examples-header {
    text-align: right;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

#chat-messages {
    flex-grow: 1;
    overflow: auto;
}

#chat-form .form-control, #chat-form .submit {
    font-size: smaller;
}

#chat-form textarea {
    height: 4.5em;
}

#chart-code {
    flex: 3;
    font-family: monospace;
}

.chart-error {
    color:#f86d67;
    font-style: italic;
    font-family: monospace;
    margin-top: 2rem;
}

#supervision-container .centered-box {
    height: 20rem;
}

.supervision-column {
    flex: 3;
}

.supervision-column h3 {
    color: #003360;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.supervision-entry h4 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 400;
    color: #0070a2;
}
.supervision-entry p {
    margin: 0.25rem;
}

.supervision-entry .supervision-source {
    font-size: smaller;
    font-style: italic;
}

.palms-table {
    font-size: 0.9rem;
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.palms-table th {
    color: #003360;
    text-align: center;
}

.palms-table th, .palms-table td {
    padding: 0.25rem;
}

.palms-table tr:nth-child(even) {
    background-color: #eee;
}

.palms-table tr td:last-child {
    text-align: center;
}

#code-tab {
    overflow-x: auto;
}

.conversation-id {
    flex-grow: 1;
    text-align: right;
    font-size: smaller;
    padding-top: 0.75rem;
}

td.linenos .normal {
    color: #888;
}