body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    text-align: center;
    justify-content: center;
    font-family: 'Play', 'Rubik', sans-serif;
    background: linear-gradient(135deg, #f5f6fa 0%, #e9e6f7 100%);
    box-sizing: border-box;
}

button {
    font-family: 'Play', 'Rubik', sans-serif;
}

textarea {
    resize: vertical;
}

#sidebar {
    max-width: 230px;
    min-width: 230px;
    height: 100%;
    background: #f9f9f9;
    overflow: hidden;
}

#sidebar.collapsed {
    width: 0px;
  }

#sidebar-toggle {
    max-width: 120px; 
    cursor: pointer;
    top: 0;
    position: relative;
    padding: 3px;
    border-radius: 4px;
}

#sidebar-toggle:hover {
    background-color: #e5e0eb;
    color: white;
    box-shadow: 0 4px 16px rgba(100,72,131,0.18);
}

.chat-session {
    white-space: nowrap;
    overflow: hidden;   
    text-overflow: ellipsis;
    padding: 5px 7px;
    line-height: 1.25rem;
    border-radius: 5px;
    margin: 2px 4px;
    cursor: pointer;
  }
.chat-session:hover {
    background-color: #64488333;
    box-shadow: 0 4px 16px rgba(100,72,131,0.12);
}
#content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48rem;
    /* box-sizing: border-box;    */
    width: 100%;
    background: #fff;
}
#content-wrapper {
    display: flex;
    padding: 40px 0px;
    width: 100%;
    background: transparent;
}

#main {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 48rem;
    height: 100%;
    width: 100%;
    background: #fff;
  }

#user_message_form {
    display: flex;
}
#conversation {
    flex-grow: 1;
    word-wrap: break-word;
}
#input-area {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}
.input-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 350px;
    padding-bottom: 10px;
}
.input-group {
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
}
.logo-container {
    padding: 0 15%;
    margin-bottom: 20px;
}
.logo-container img{
    max-width:165px; 
    width:100%; 
    margin:0 auto;
    display:block;
}
input {
    font-size: 14px;
}
input::placeholder, textarea::placeholder {
    font-family: 'Play', 'Rubik', sans-serif;
}

#user_message {
    flex-grow: 1;
    border-style: hidden;
    font-size: medium;
    padding-left: 10px;
    margin-right: 40px;
    margin-left: 47px;
}
#user_message:focus-visible {
    outline: none;
}

#footer {
    margin-top: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 28px;
    border: 2px solid #644883;
    display: flex;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #644883;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1.5s linear infinite;
    display: none; /* Initially hidden */
    margin: auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.success-message {
    color: green;
}
.error-message {
    color: red;
}
.info-message {
    color: blue;
}
.input-with-shadow {
    width: 100%;
    max-width: 100%;
    padding: 12px 40px;
    border: 2px solid #efefef;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(100,72,131,0.08);
    border: 2px solid #e3d7f3;
    transition: box-shadow 0.2s, border 0.2s;
}
.input-with-shadow:focus {
    box-shadow: 0 4px 16px rgba(100,72,131,0.18);
    border: 2px solid #644883;
}
.input-icon {
    position: absolute;
    top: 25%;
    left: 15px;
    /* transform: translateY(-50%); */
    width: 20px;
    height: 20px;
    color: #e1e1e1;
}
input:focus-visible {
    outline: auto #644883;
}
textarea:focus-visible {
    outline: auto #644883;
}
.intellimenta-color-button {
    padding: 10px;
    width: 100%;
    max-width: 150px;
    background-color: #644883;
    border: none;
    border-radius: 4px;
    color: white;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: .4s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(100,72,131,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.intellimenta-color-button:hover {
    background-color: #48355d;
    box-shadow: 0 4px 16px rgba(100,72,131,0.18);
    transform: translateY(-2px) scale(1.03);
}
.intellimenta-color-button:active {
    transition: transform 0.03s;
    transform: scale(0.95);
}

.below_input_form {
    font-size: 15px;
    line-height: 25px;
}

.below_input_form a {
    color:#644883;
}

#loading-overlay {
    position: fixed;
    top: 0;
    /* left: 0; */
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    z-index: 999;
}

#overlay.active {
    display: flex;
  }

#listeningDiv {
    visibility: hidden;
}

#settingsPopup, #personalDashboardSection {
    width: 100%;
    max-width: 610px;
    margin: auto;
    height:90%;
    top:5%;
    background:white;
    position: relative;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 5px;
    z-index: 1000;
}

.tab {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-top: 30px;
}

.tabAdmin {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.tab button, .tabAdmin button {
    display: flex;
    align-items: center;
    background-color: #ddd;
    border: solid 1px;
    border-color: #ddd;
    border-radius: 5px;
    padding: 6px;
    margin: 3px 20px;
    cursor: pointer;
    text-align: left;
    font-size: medium;
    font-family: 'Play', 'Rubik', sans-serif;
    box-shadow: 0 2px 8px rgba(100,72,131,0.06);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.tab button:hover, .tabAdmin button:hover {
    background-color: #ae9bc4;  
    border: solid 1px;
    border-color: #644883;
    box-shadow: 0 4px 16px rgba(100,72,131,0.12);
    /* transform: translateY(-2px) scale(1.02); */
}
.tab button.active, .tabAdmin button.active {
    background-color: #ccc;
}
.tab button .arrow, .tabAdmin .arrow {
    position: absolute;
    right: 40px;
    height: 20px;
    /* transform: translateY(-10%); */
}
.tabcontent {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 940px;
    background-color: white;
    transition: left 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
}
.tabcontent.active {
    left: 0;
}
.close-button {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #ddd;
    border: none;
    border-radius: 5px;
    padding: 5px 10px 5px 5px;
    margin: 30px 30px 0px 30px;
    cursor: pointer;
    text-align: left;
    font-size: medium;
    font-family: 'Play', 'Rubik', sans-serif;
    box-shadow: 0 2px 8px rgba(100,72,131,0.06);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.back-button {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #ddd;
    border: none;
    border-radius: 5px;
    padding: 5px 13px 5px 10px;
    margin: 20px;
    cursor: pointer;
    text-align: left;
    font-size: medium;
    font-family: 'Play', 'Rubik', sans-serif;
    box-shadow: 0 2px 8px rgba(100,72,131,0.06);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.back-button:hover {
    background-color: #ae9bc4;
}
.close-button:hover {
    background-color: #ae9bc4;
}
#userLanguageForm, #languageForm {
    text-align: left;
    width: 300px;
    margin: auto;
    margin-top: 50px;
}

#cardHeightForm {
    text-align: left;
    width: 200px;
    margin: auto;
    margin-top: 50px;
}

/* Hide the default checkbox */
.toggle-button {
    display: none;
}

/* Change background and move the circle when checked */
.toggle-button:checked + .toggle-label {
    background-color: #644883;
}

.toggle-label-secondary-color {
    background-color: #3970cf !important;
}

.toggle-button:checked + .toggle-label-secondary-color {
    background-color: #35a451 !important;
}

.toggle-button:checked + .toggle-label::before {
    transform: translateX(25px);
}

/* Style for the toggle label */
.toggle-label {
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 25px;
    position: absolute;
    right: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* transform: translateY(-15%); */
}

/* Circle inside the toggle */
.toggle-label::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}


.close_icon {
    height: 20px;
}
.back_icon {
    height: 15px;
}
.settings_inner_page_title {
    display: flex;
    align-items: center;
    margin-top: 50px;
}

#submitIcon, #submitIconDark {
    margin-left:-40px; 
    margin-top:-3px; 
    height: 40px;
    position: absolute;
    right: 5px;
    transition: opacity 0.2s, filter 0.2s;
    padding-right: 5px;
    filter: drop-shadow(0 2px 4px rgba(100,72,131,0.10));
}

#micIcon, #micIconDark {
    height: 35px; 
    cursor: pointer; 
    position: absolute;
    left: 8px;
    transition: opacity 0.2s, filter 0.2s;
    filter: drop-shadow(0 2px 4px rgba(100,72,131,0.10));
}
#micIconDark {
    opacity: 0;
}
#mic-container {
    position: relative;
    width: fit-content;
    margin-left: -7px;
  }
#mic-container:hover #micIcon {
    opacity: 0;
}
#mic-container:hover #micIconDark {
    opacity: 1;
}
#micIconDark:active {
    transform: scale(0.95);
}

.top-right-button {
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
}

.top-right-button:hover {
    background-color: #e5e0eb;
    color: white;
    box-shadow: 0 4px 16px rgba(100,72,131,0.18);
}

.helpTitle{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
}
#greeting {
    padding: 5px;
    /* margin-top: 50px; */
    font-size: 20px;
}

.response-success {
    color: green;
    margin-top: 20px;
}
.response-error {
    color: red;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}
td {
    border-bottom: 1px solid black;
    border-top: 1px solid black;
}
td, th {
    padding: 8px;
    text-align: left;
}
th {
    font-weight: bold;
    border-bottom: 1px solid black;
}
/* td:nth-child(2), th:nth-child(2) {
    text-align: right;
} */

.input-label {
    padding: 15px 12px 10px 12px;
    text-align: left;
    font-weight: bold;
}


.confirmation-screen {
    display: none;
    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);
    padding-top: 10%;
}
.confirmation-screen-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(100,72,131,0.12);
    border-radius: 16px;
}


/* multi-select dropdown (user management) */
.multi-select-dropdown {
    position: relative;
    display: inline-block;
}

.multi-select-dropdown-toggle {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.multi-select-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(100,72,131,0.10);
}

.multi-select-dropdown-menu .multi-select-dropdown-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.multi-select-dropdown-menu .multi-select-dropdown-item input[type="checkbox"] {
    margin-right: 10px;
}

.multi-select-dropdown-menu .multi-select-dropdown-item input[type="checkbox"]:checked + label::after {
    content: '✓';
    margin-left: 5px;
    color: green;
}



.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 7px;
    position: absolute;
    z-index: 1;
    bottom: 105%; /* Position above the tooltip */
    left: 0%;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Play', 'Rubik', sans-serif;
}

.tooltip-left {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-left .tooltiptext-left {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 50%; /* Vertically center the tooltip */
    right: 125%; /* Position to the left of the tooltip */
    margin-top: -15px; /* Center the tooltip vertically */
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Play', 'Rubik', sans-serif;
}

.tooltip:hover .tooltiptext, .tooltip-left:hover .tooltiptext-left{
    visibility: visible;
    opacity: 1;
}

.notification {
    visibility: hidden;
    margin-left: -125px;
    max-width: 250px;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: fixed;
    z-index: 1000;
    right: 30px;
    bottom: -100px;
    font-size: 15px;
    transition: bottom .5s, visibility .5s;
    box-shadow: 0 2px 8px rgba(100,72,131,0.10);
    border-radius: 8px;
    /* background: linear-gradient(135deg, #644883 0%, #ae9bc4 100%); */
}
.notification.show {
    visibility: visible;
    bottom: 30px;
}

.action-buttons {
    display: flex;
    width: 28px;
    height: 28px;
    background-color: #644883;
    padding: 5px 10px;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    margin: 3px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(100,72,131,0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.action-buttons:hover {
    background-color: #48355d;
    box-shadow: 0 4px 16px rgba(100,72,131,0.18);
}


#query-suggestions {
    display: flex;
    /*flex-wrap: wrap;*/
    gap: 10px;
    justify-content: center;
}

.query-suggestion {
    padding: 15px 15px;
    background-color: #64488321;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #333;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    flex: 1 1 45%;
    max-width: 180px;
    /* min-width: 150px; */
    border: 1px solid #ccc;
}

.query-suggestion:hover {
    background-color: #6448834a;
    border-color: #644883;
}

.session-delete-button {
    visibility: hidden; 
    position: absolute; 
    right: 0; 
    top: 7px; 
    border: none; 
    cursor: pointer; 
    background: #64488373;
    padding: 0; 
    margin-right: 8px;
    border-radius: 2px;
}

.session-container:hover .session-delete-button {
    visibility:visible;
}

#testRunResultsTable td, #testRunResultsTable th {
    min-width: 110px;
    padding: 5px;
}

label {
    font-family: 'Play', 'Rubik', sans-serif;
}

.response-quality-test-container {
    text-align: left; 
    padding:15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.response-quality-test-icons-container {
    visibility: hidden; 
    display:flex;
    position: absolute; 
    height: 20px;
    right: 35px; 
    margin-top: 9px; 
    border: none; 
    cursor: pointer; 
    background: #ffffff;
    padding: 0; 
    padding-left: 3px;
    border-radius: 2px;
}

.response-quality-test-container:hover .response-quality-test-icons-container {
    visibility:visible;
}

#schema-mode-text {
    display: flex;
    align-items: center;
    height: 22px;
}

.table-permissions {
    text-align: left; 
    padding:5px 10px; 
    margin: 2px 10px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background-color: #64488314;
    border-radius: 5px;
}

.txt-bg {
    background-color: #d3d3d3a1;
}

.field-title-left {
    margin: 0px; 
    margin-bottom: 5px; 
    text-align: left;
    padding-left: 5px;
}

.bot-response {
    padding: 5px 15px 5px 5px;
    overflow-x: auto;  /* for 'sql' command, if the response is too wide it adds scroll on the whole page.
                          the following line adds the scroll only to the item. */
}
.bot-response-ltr {
    text-align: left;
    direction: ltr;
}

.bot-response-rtl {
    text-align: right;
    direction: rtl;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}