html, body {
    /* font-family: 'Open Sans', sans-serif; */
    font-family: 'Palatino Linotype', 'Times New Roman', 'serif';
    font-family: 'Segoe UI', 'Trebuchet MS', 'Tahoma', 'Microsoft Sans Serif', 'sans-serif';
    /* font-family: sans-serif; */
    font-size: 16px;
    overflow: hidden;
    overflow-x: hidden;
    touch-action: none;
}
.btn.btn-block {
    display: block !important;
    width: 100% !important;
}

.chat-window {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.message-history {
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
    background: #2f3a42;
}
.new-message {
    padding: 0px 0px 30px;
}

.message {
    border-radius: 10px;
    padding: 3px;
    border: 5px solid #384e5d;

    margin-right: 30px;
    margin-left: 15px;
    overflow: auto;
    background-color: #202e39;
    color: #ccc;
}
.message.assistant {
    background: #fdf6e3;
    margin-right: 15px;
    margin-left: 30px;
    border: 5px solid #74a7c5;
    background-color: #325d79;
    color: #fff;
}

#main_page_wrapper {
    position: relative;
    overflow: hidden;
}
.rounded-speech {
    border-radius: 34px;
    border-radius: 2.43rem;
}


.message.tool {
    font-family:'Courier New', Courier, monospace;
    background-color: #222;

}

.message .fa-robot,
.message .fa-tools,
.message.tool .fa-robot,
.message.tool .fa-user,
.message.assistant .fa-user,
.message.assistant .fa-tools {
    display: none;
}
.message.assistant .fa-robot,
.message .fa-user,
.message.tool .fa-tools {
    display: inline;
}


textarea#message {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    border: 0;
    outline: none;
    background: #222;
    margin: 5px;
}
textarea#message:focus {
    outline: none;
    border: 0;
    background: #333;
}

#user_phone {
    font-size: 32px;
    text-align: center;
}
#registration_form input {
    font-size: 32px;
    text-align: center;
}

.message.assistant .content {
    padding: 3px;

}
.message div strong.user {
    display: block;
}
.message div strong.user {
    position: relative;
    background: #345c79;
    margin: -3px -3px 0px -3px;
    padding-left: 3px;
}
.message.assistant div strong.user {
    text-align: right;
    position: relative;
    background: #4f87af;
    margin: -6px -6px 0 -6px;
}
.timestamp {
    font-size: 0.7em;
    text-align: right;
    color: #666;
    font-family: 'Courier New', Courier, monospace;
    float: right;
}

#token_count {
    font-size: 0.85em;
    font-weight: bold;
    color: #666;
    font-family: 'Courier New', Courier, monospace;
}

.remove-link {
    color: rgb(200, 150, 150);
    font-size: 0.7em;
    cursor: pointer;
    float: left;
}
ul, li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
#memories_list li {
    border-bottom: 1px solid #eee;
}

#tools_list li .tool_list_wrapper {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
}
.memory_title {
    font-size: 0.9em;
    font-weight: bold;
    padding: 3px;
    background: #f0f0f0;
    border-radius: 5px;
}
.memory-summary {
    text-decoration: none;
}

.tool_param {
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 5px;
}
.tool_name {
    border-bottom: 1px solid #ccc;
}

textarea.autosize {
    transition: height 0.2s ease-in-out; /* Smooth transition for height changes */
    overflow: hidden; /* Hide scrollbars for a cleaner animation */
}

.loading-bar-fill {
    width: 0%;
}

.bullet {
    list-style: disc;
    margin-left: 20px;
    text-indent: -20px;
    display: inline;
}
.bullet span {
    font-size: 23px;
    display: inline;
}

code {
    background-color: #1e3a5f ;
    color: #87daff ;
    padding: 1px 3px;
    border-radius: 5px;
    display: inline-block;
    text-indent: 0px;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
}

.code-block {
    background-color: #1e3a5f;
    color: #87daff;
    padding: 5px;
    border-radius: 12px;
    display: block;
    text-indent: 0px;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    border-top: 1px solid #84a1cd;
    border-right: 3px solid #15263f;
    border-bottom: 1px solid #060f1c;
    border-left: 3px solid #3a63a1;
    display: inline-block;
}

.max-height-pane-wrapper {
    display: flex;
    flex-direction: column;
    /* height: calc(100vh - 15px); /* or 100% if you're using a container with a defined height */
    height: 100%;
    position: relative;
    overflow: auto;
}
@media screen and (max-width: 1199px) {
    .max-height-pane-wrapper {
        overflow: visible;
    }
}
.max-height-pane {
    overflow: auto;
    flex: 1; /* make the pane take the remaining height */
}

#system_message {
    max-height: 400px;
}

.top-buttons {
    position: fixed;
}

#prompt_content {
    max-width: 800px;
    max-height: 600px;
    width: 100vh;
    height: 100vh;
}
#summary_form_container {
    min-width: 400px;
    max-width: 100%;
}

@media screen and (max-width: 1199px) {
    #summary_form_container {
        min-width: 300px;
        max-width: calc(100% - 30px);
    }
    #left-pane, #right-pane {
        position: absolute;
        width: 100%;
        background: #fff;
        left: auto;
        right: auto;
        max-height: 100%;
        max-width: 320px;
        z-index: 10;
        transform: translateX(0);
        transition: transform 0.2s ease-in-out;
        box-shadow: 0px 0px 30px 0px #333;
        height: 100%;
    }
    #left-pane {
        width: calc(100% - 70px);
        left: -320px;
        padding: 15px;
        background-color: #333;
    }
    #left-pane.show-pane {
        transform: translateX(320px);
        transition: transform 0.3s ease-in-out;
        border-right: 5px solid #325d79;
    }
    #right-pane.show-pane {
        transform: translateX(-320px);
        transition: transform 0.3s ease-in-out;
        right: -320px;
        border-left: 5px solid #325d79;
    }
    #right-pane {
        position: absolute;
        width: calc(100% - 70px);
        right: -320px;
        top: 0;
        padding: 15px;
        background-color: #333;
    }

    div#user_details {
        max-height: calc(100vh - 298px);
        overflow: auto;
        border-top: 3px solid #ccc;
        border-bottom: 3px solid #ccc;
        background-color: #1e1e1e;
    }

    .toggle-button {
        display: block;
        position: absolute;
        top: 0;
        right: auto;
        left: -32px;

    }
    .toggle-button.toggle-button-left {
        right: -32px;
        left: auto;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .toggle-button.toggle-button-right {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}




.hidden {
    display: none;
}

#dep_tree {
    height: 100vh;
    max-height: calc(100vh - 400px);
    overflow: auto;
}
#sys_response {
    max-height: 400px;
    overflow: auto;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    max-width: 100%;
}

#canvas {
    display: none;
}

.message-info {
    position: relative;
}

#image_attach {
    position: absolute;
    left: 0;
    bottom: 10px;
    max-height: 100px;
}
#image_attach img {
    max-width: 100%;
    max-height: 100px;
}
#close_image {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    color: #eee;
    background-color: #333;
    border-radius: 20px;
    padding: 5px;
    height: 32px;
    width: 32px;
    text-align: center;
}

#camera_button {
    --bs-border-radius: 2.0rem;
    padding-left: 20px;
    padding-right: 15px;
}
#send_button {
    --bs-border-radius: 2.0rem;
    padding-right: 20px;
}
.no-underline a {
    text-decoration: none;
    color: inherit;
}

#projects_list {
    max-height: 400px;
    overflow: auto;
    border-top: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
    background-color: #1e1e1e;

}
#memories_list_wrapper {
    height: calc(100vh - 557px);
    overflow: auto;
    border-top: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
    background-color: #1e1e1e;
}
#user_details {
    max-height: calc(100vh - 364px);
    overflow: auto;
    border-top: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
    background-color: #1e1e1e;
}


.icon {
    font-size: 40px;
    margin-top: -10px;
}
.large-text {
    font-size: 1.4em;
}
.large-font-button {
    font-size: 2.0em;
    padding: 5px;
}
.rounded-pane {
    border-radius: 15px;
    overflow: hidden;
}


.init-forms#registration_form_wrapper,
.init-forms#forgot_password_form_wrapper {
    display: none;
}
.init-forms#login_form_wrapper {
    display: block;
}


#logo {
    display: inline-block;
}