body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Light orangish background */
    position: fixed;
    width: 100%;
    height: 100%;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, #ddf6f6, #cce8e8, #dffcfc);
    margin: 0;
    padding: 0;
}

.message-container {
    display: flex;
}

#navbar {
    min-height: 65px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    color: #333;
    padding: 5px;
    background: -webkit-linear-gradient(292deg, hsla(208, 67%, 81%, 1) 0%, hsla(37, 65%, 85%, 1) 50%, hsl(0deg 65% 83%) 100%);
    /*background-color: rgb(37 60 63 / 40%);*/
    align-items: center;
    justify-content: space-between;
}

.logo-container,
.title-container,
.button-container {
    text-align: center;
}

.button-container button {
    margin: 0 20px;
}


.navbar-title {
    background-clip: text;
    color: #4c4a3fbd;
    font-size: 25px;
    margin: 0;
    /*padding-right: 175px;*/
    font-family: system-ui;
    font-weight: 200;
}

.button-container a {
    padding: 15px 15px 10px 15px;
    border-radius: 25px;
    background: #b592a375;
}

a {
    text-decoration: none;
    transition: background-color 0.2s;
    color: #333;
    border: solid 2px transparent;
}

a:hover {
    color: #333;
    background: #b592a3ae;
}

#chatbot {
    margin-left: 20%; /*Initial margin-left */
    padding: 10px;
    /*width: 80%;*/
    transition: margin-left 0.5s;
}

#chat-container {
    border-radius: 15px 15px 15px 15px; /* Rounded corners */
    background-color: rgba(255, 255, 255, 0.518); /* White background */
    padding: 5%;
    height: 77.5vh;
    overflow-y: scroll;

}

.user-name {
    font-size: 13px;
    text-align: right;
    margin-left: auto;
    margin-right: 10px;
}

.user-message {
    background-color: rgb(141 96 74 / 35%); /* Light bluish background */
    padding: 10px;
    margin-bottom: 10px; /* Decreased margin */
    border-radius: 15px;
    width: fit-content;
    max-width: 70%; /* Adjusted max-width */
    margin-left: auto; /* Align to the right */
    word-wrap: break-word;
    transition: box-shadow 0.2s;
    color: #5b4d4d;
    font-size: smaller;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.user-message:hover {
    background: rgba(141, 96, 74, 0.515);
}

.generator-name {
    font-size: 13px;
    margin-left: 10px;
}

.bot-message {
    overflow-x: auto;
    background-color: #90b2cc42; /* Light bluish color */
    color: #5b4d4d;
    text-align: left;
    padding: 10px;
    margin-bottom: 24px; /* Further increased margin */
    border-radius: 20px;
    width: fit-content;
    max-width: 100%;
    word-wrap: break-word;
    transition: box-shadow 0.2s;
    font-size: small;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.bot-message table {
    width: 100%;
    table-layout: auto;
}

.bot-message th, .bot-message td {
    text-align: left;
    padding: 8px;
    word-wrap: break-word;
}

.bot-message th {
    background-color: #f2f2f2;
}

.bot-message td {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 170px;
}

.bot-message:hover {
    background: #90b2cc52;
}

.bot-message:hover .info-icon {
    display: flex;
}

/* Add to your existing CSS file */

.table th {
    position: relative;
    cursor: pointer;
}

.sort-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8em;
}

.table th[data-sort='asc'] .sort-icon::after {
    content: '▲'; /* Ascending sort icon */
}

.table th[data-sort='desc'] .sort-icon::after {
    content: '▼'; /* Descending sort icon */
}

.table th[data-sort='none'] .sort-icon::after {
    content: '⇅'; /* Default sort icon */
}


.like-icon {
    margin-bottom: 9px;
}

.avatar-icon {
    margin-right: 10px;
    margin-top: 25px;
}


.info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    bottom: 5px;
    right: 10px;
    float: right;
    padding: 0;
    margin-left: 10px;
    transition: opacity 0.3s;
}

.export-icon {
    cursor: pointer;
    margin-top: 5px;
}

.info-button {
    margin: 10;
    padding: 0;
    background: none;
    width: min-content;
    height: min-content;
    border-radius: 50%;
    margin-top: 10px;
}


#input-container {
    display: flex;
    align-items: flex-end;
    background: #ffffff;
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border-radius: 0 0 15px 15px; /* Rounded corners */
}

input[type=text] {
    width: calc(100% - 70px);
    padding: 12px 20px;
    box-sizing: border-box;
    border: 0.5px solid #cccccc;
    border-radius: 25px;
    transition: width 0.5s;
    display: inline-block;
    margin-bottom: 0;
    height: 50px;
    background-color: #ffffff;
    color: #515050;
    outline: none;
    font-size: smaller;
}

.textInput:focus {
    outline: none;
    box-shadow: none;
    background-color: #e2e1e0;
}

#submit-arrow img {
    margin-top: -2px;
}

button {
    margin-left: 10px;
    height: 50px;
    width: 70px;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 20px;
    background: #16233a;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.d-grid .like-button, .d-grid .dislike-button {
    width: 20px;
}


#plusMinusBtn{
    margin: 0;
    background: none;
    transition: border 0.3s;
    color: black;
}

#micBtn {
    margin: 0;
    background: none;
    transition: border 0.3s;
}

#submitButton {
    margin: 0;
    background: none;
    transition: border 0.3s;
}

#submitButton:disabled {
    cursor: not-allowed;
    border: none;
}

#sidebar {
    width: 250px;
    height: 100%;
    position: fixed;
    background: -webkit-linear-gradient(0deg, hsl(294.6deg 8.83% 54.37% / 33%) 0%, hsl(0deg 0% 100%) 100%);
    padding-top: 40px; /* Adjusted top padding */
    overflow-x: hidden;
    transition: 0.5s;
}

#sidebar a {
    padding: 8px;
    text-decoration: none;
    font-size: 16px;
    color: #333; /* Dark gray text for sidebar links */
    display: block;
    transition: background-color 0.3s;
}

#sidebar a:hover {
    color: #ffffff; /* White text on hover */
    background-color: #92acb0; /* Light bluish background on hover */
}

#menuBtn {
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    margin-top: 0; /* Adjusted top margin */
    color: #333; /* Dark gray for the menu icon */

}

#menuBtn span {
    font-size: 14px;
    margin-left: 5px;
}

#sidebar.collapsed span {
    display: none;
}

/* Added CSS for collapsed state */
#sidebar.collapsed {
    width: 60px;
}

#sidebar.collapsed a {
    padding: 8px;
    text-align: center;
    overflow: hidden;

}

/* Added CSS to hide sidebar content in collapsed state */
#sidebar.collapsed a:not(:first-child) {
    display: none;
}

/* Additional styling for responsiveness and aesthetics */
@media screen and (max-width: 600px) {
    input[type=text], button {
        width: 100%;
        border-radius: 5px; /* Adjusted border-radius for responsiveness */
    }
}

.user-message-list {
    list-style-type: none;
    padding: 0;
}

.user-message-list li {
    padding: 8px;
    text-decoration: none;
    color: #5b4d4d; /* Dark gray text for user messages in light theme */
    display: block;
    transition: background-color 0.3s;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    font-size: smaller;
}

.user-message-list li:hover {
    color: #5b4d4d; /* White text on hover */
    background-color: #dfdee0; /* Light bluish background on hover */
}

.user-message-list li:last-child {
    border-bottom: none;
}

.spinner-border-sm {
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-border-width: 0.2em;
    color: #9c447fa8;
}

.user-message-list.collapsed {
    display: none;
}

#bottomButton {
    z-index: 1;
    position: fixed;
    bottom: 16%;
    width: auto;
    height: auto;
    padding: 2px 15px;
    outline: none;
    opacity: 0.5;
    transition: opacity 0.3s;
    font-family: Arial, sans-serif;
    font-size: 16px;
    left: 50%;
    display: none;
}

#bottomButton:hover {
    opacity: 1;
}

#sqlQuery {
    font-size: 13px;
}

.info-table {
    width: 70%;
}

.info-cell {
    font-size: smaller;
    color: #3b3030;
    text-align: center;
    padding: 1px;
    background-color: #c8a598d1;
    border-radius: 10px 0 0 10px;
}

.value-cell {
    text-align: center;
    padding: 1px;
    background-color: rgb(209 209 209);
    border-radius: 0 10px 10px 0;
    font-size: smaller;
}

.title-cell {
    padding: 1px;
    background-color: rgb(84 38 66 / 82%);
    text-align: center;
    border-radius: 10px 0 10px 0;
    color: #fae4e4;
    font-size: smaller;
}