#chat-container {

}

#chat-log, #second-chat-log > * {
    margin-bottom: 3px !important;
    padding-bottom: 3px !important;
}

#chat-log, #second-chat-log {
    /*  position: relative;
    border: 1px solid #ccc; */
    padding: 10px;
    height: 100%;
    overflow-y: scroll;
    margin-bottom: 10px;
    font-size: 14px;
}


#chat-log .codehilite {
    font-size: 14px; /* Smaller font size for code blocks */
}

.codehilite p {
    margin-bottom: 3px !important; /* Smaller margin for code block paragraphs */
}

#cnt-chat-log, #second-chat-window {
    height: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-top: 5px;
}

[data-bs-theme=light] {
    .user-message {
        background-color: #dcf8c6;
        max-width: 70%;
    }

    .llm-message {
        background-color: #f1f0f0;
        max-width: 70%
    }
}

[data-bs-theme=dark] {
    .user-message {
        background-color: #1a1a1a;
        max-width: 80%;
    }

    .llm-message {
        background-color: #343a40;
        max-width: 80%;
    }
}


.token-count {
    font-size: 0.8em;
    color: #888;
}

#logout-form {
    margin-top: 20px;
}

#spinner, #second-spinner {
    display: none;
    position: absolute;

    margin: 10px auto;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#spinner {
    top: 0;
    left: calc(50% - 30px);
}

#second-spinner {
    top: 0;
    left: calc(50% + 30px);
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

 #llmOptions, #options, #lable-2nd, #dropdown-2nd {
    display: none;

}

#options {

    display: none;
    padding: 5px;

}

#llmSent, #llmReceive {
    border: 1px solid #4d5154;
    border-radius: 5px;
    overflow-y: auto;
    padding: 10px;
    height: calc(50% - 7px);
    width: calc(100% + 5px) !important;
    font-size: var(--bs-font-size-base);
}



.json-output {
    white-space: pre-wrap; /* Preserve whitespace and wrap as necessary */
    word-wrap: break-word; /* Break words that are too long to fit */
}

.s2 {
    white-space: pre-wrap !important; /* Preserve whitespace and wrap as necessary */
    word-wrap: break-word !important; /* Break words that are too long to fit */
}

.codehilite {
    border: 1px solid #4d5154;
    border-radius: 5px;
    max-width: 100%;
    font-size: var(--bs-font-size-base);
    margin-bottom: 10px;
}


.tooltip-label {
    position: relative;
    cursor: pointer;
    text-decoration: none; /* Remove default underline */
    border-bottom: 1px dotted currentColor; /* Add dotted underline */
    padding-bottom: 1px; /* Space between text and underline */
}

.tooltip-label[data-bs-toggle="tooltip"] {
    text-underline-offset: 0px; /* Increase space between text and underline */
}

.lable-align {
    padding-top: 0.5em;
}

#main_cnt {
    height: calc(100vh - 100px);
}

#cnt-chat, #options {
    height: calc(100vh - 350px) !important;
}

#second-model-pad {
    padding-left: calc((100% /2) - 370px);
}

.sec-mod {
    display: none;
}

.btn-code {
    --bs-btn-padding-y: .1rem;
    --bs-btn-padding-x: .25rem;
    --bs-btn-font-size: .75rem;
    margin-bottom: 1rem;
}

#savedChatsList {
    list-style-type: none;
    padding-left: 0;
    display: block;
    max-width: 100%;

    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

#center-message {
    text-align: center;
    color: white;
    height: calc(100vh - 150px);
}

#main-content .d-none {
    display: none;
}

[disabled] {
    pointer-events: none;
    opacity: 0.5;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.nav-active {
    cursor: not-allowed;
    pointer-events: none;
    color: #fff !important;
    background-color: #6c757d !important;
}

#sidebar {
    height: calc(100vh - 85px);
    width: 250px !important;
    background-color: #1a1a1a;
    overflow-x: hidden;
    display: none;
}

#main-content {
    height: calc(100vh - 115px);
}

#chat-interface {
    height: calc(100vh - 130px);
}

#chatMessageInput {
    padding-right: 165px;
    height: 100px;
}

#showSidebar {
    display: none;
    top: 57px;
    left: 20px;
    font-size: 18px;
    line-height: 23px;
}

#hideSidebar {
    left: 20px;
    font-size: 18px;
    line-height: 23px;
}

#hideSidebar {
    top: -3px;
}

#homework-header {
    display: none;
}

#sidebar .nav-link {
    font-size: 0.875rem; /* Font size for navigation links */
}

#sidebar h5 {
    font-size: 0.875rem; /* Font size for headings */
}

#sidebar p, #sidebar span {
    font-size: 0.875rem; /* Font size for paragraphs and spans */
}

#sidebar ul li {
    font-size: 0.875rem; /* Font size for list items */
}

#homework-header {
    display: none;
}

#chat-header {
    display: none;
}

#finalSubmissionButton {
    font-size: 0.875rem;
}

.llm-message br {
    display: none;
}

#chat-log p,
#second-chat-log p {
    margin-bottom: 8px;
}

#chat-log strong,
#second-chat-log strong {
    font-style: italic;
}

.codehilite br {
    display: block !important;
}

#chat-log h1,
#chat-log h2,
#chat-log h3,
#chat-log h4,
#chat-log h5,
#chat-log h6,
#second-chat-log h1,
#second-chat-log h2,
#second-chat-log h3,
#second-chat-log h4,
#second-chat-log h5,
#second-chat-log h6 {
    font-size: 1.6em;
    font-weight: bold;
}

