body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f4ee;
    display: flex;
    justify-content: center;
    font-size: 16px;
    height: 100vh;
    line-height: 1.6;
    /* Adjusted line spacing */
    align-items: center;
}

.page-container {

}
.container {
  height: 100vh; /* 100% of the viewport height */
  overflow: hidden; /* Prevents scrolling on the container */
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.response-container {
    width: 90vw;
    /*max-height: 76vh; /* Adjust 15vh based on your actual top content height */
    /*height: 76vh;*/
    max-height: 81vh; /* Adjust 15vh based on your actual top content height */
    height: 81vh;    
    max-width: 90vw;
    background-color: #f7f4ee;
    padding: 20px;
    border-radius: 8px;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin-bottom: 2vh;
    margin-top: 5vh;
    z-index: 1;
}
.chat-container {
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    flex-grow: 1; /* Allows the container to grow and fill available space */
    padding-right: 15px;
    z-index: 1;
}
.conversation {
    overflow-y: auto;
    display: flex;
    flex-direction: column; /* Display messages in normal order vertically */
    flex-grow: 1; /* Allows the container to grow and fill available space */
    padding-right: 15px;
}
.top-container {
    display: flex;
    align-items: center; /* This vertically centers the contents */
    max-height: 8vh;
    min-height: 8vh;
    background-color: #f7f4ee;
    margin-top: 6vh;
    margin-bottom: 1vh;
    width: 100%; /* Full width */
}
.message {
    padding: 10px;
    border-radius: 8px;
    margin: 5px;
    max-width: 80%;
    word-break: break-word;
}

.message p {
    margin-bottom: 2px;
    margin-top: 2px;
}

.user {
    align-self: flex-end;
    background-color: #dcf8c6;
}

.assistant {
    align-self: flex-start;
    background-color: #ebebeb;
}

textarea,
button,
select {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    cursor: pointer;
    background-color: #f6ba39;
    color: white;
    border: none;
}

button:hover {
    background-color: #e3a41b;
}

.response-container {
    position: relative;
    /* Other styles remain the same */
}

.dot-container {
    justify-content: flex-start;
    /* Align dots to the left */
    margin-bottom: 10px;
    /* Space above the input box */
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    /* Animation */
    animation: dotFlashing 1s infinite linear alternate;
    animation-delay: 0s;
}

.input-group {
    display: flex;
    align-items: center; /* This should vertically center all children */
    justify-content: start; /* Adjust if you want different spacing */
    width: 100%; /* Ensure the group spans the full width of its container */
}


textarea#search-box {
    flex-grow: 1;/* Allows the input to grow and fill the space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 5px 5px 5px;/* Rounded corners on the left side */
    overflow-y: auto; /* Prevent internal scrollbar */
    resize: none; /* Optional: Disable manual resize */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 58px; /* Set a minimum height */
    font-size: 14px;
    max-height: 200px; /* Maximum height before scrolling */
    box-sizing: border-box; /* Ensure padding and border are included in height */
    max-width: 1000px;
}

button#search-btn {
    padding: 10px 20px; /* Adjust padding as needed */
    border-radius: 10px; /* Example for a rounded button, adjust as needed */
    background-color: #f6ba39; /* Example modern green color, adjust as needed */
    color: white;
    border: none;
    height: 50px; /* Ensure this matches the height of adjacent elements */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

button#search-btn:hover {
    background-color: #e3a41b; /* A slightly darker shade for hover state */
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Keyframes for the flashing effect */
@keyframes dotFlashing {
    0% {
        opacity: 0;
    }

    50%,
    100% {
        opacity: 1;
    }
}
@keyframes fadeInTopToBottom {
    from {
        opacity: 0;
        transform: translateY(-1px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.fade-in {
    animation: fadeInTopToBottom 0.5s ease-out forwards;
}

.chat-container, .conversation {
    overflow-y: auto; /* Adjust if necessary to ensure animations are visible */
    /* Other styles */
}

#image-preview-container {
    display: none;
    position: absolute;
    bottom: 100px; /* Adjust if you need to move it up */
    right: 20px; /* Adjust based on where you want it relative to the upload button */
    border: 2px solid #000;
    border-radius: 4px;
    overflow: hidden;
    width: 45px; /* Ensure the container's size is explicitly set */
    height: 45px; /* Ensure the container's size is explicitly set */
    background: white;
    z-index: 1; /* Ensure it's positioned correctly in the stacking context */
    object-fit: cover; /* Ensures image covers the space, may crop if necessary */
}

#image-preview {
    width: 100% !important; /* Take full width of the container */
    height: 100% !important; /* Take full height of the container */
    object-fit: cover; /* Cover the container fully, clipping excess */
}

#remove-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for the background color */

}
#remove-image:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker on hover */
    color: #FF0000; /* Change color of "X" to red */

}

#search-box, #search-btn, #upload-icon, #more-icon, #mic-icon, #menu-icon {
    height: 50px; /* Example height, adjust based on your design */
}
#upload-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px; /* Align height with other input group items */
    cursor: pointer;
    z-index: 2; /* Ensure the upload button is above the preview */
}
#more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px; /* Align height with other input group items */
    cursor: pointer;
    z-index: 2; /* Ensure the upload button is above the preview */
}
#menu-container {
    display: none;
    align-items: center;
    justify-content: center;
    height: 45px; /* Align height with other input group items */
    cursor: pointer;
    z-index: 2; /* Ensure the upload button is above the preview */
}
#upload-icon, #more-icon, #mic-icon, #menu-icon {
    transition: opacity 0.3s ease; /* Smooth transition for the opacity change */
    width: 50px; /* Adjust based on the container size */
    max-width: 50px; /* Limits the icon size */
    height: auto; /* Maintain aspect ratio */
}

#upload-icon:hover, #more-icon:hover, #mic-icon:hover, #menu-icon:hover {
    opacity: 0.5; /* Adjust the opacity to indicate hover state */
}
.overlay-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it's on top */
}

.overlay-alert-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.overlay-alert2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* Ensure it's on top */
    pointer-events: none;
    /* Allows clicks to pass through to the page */
}

.overlay-alert-content2 {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    pointer-events: auto;
    /* Enable interactions with the content */
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 700px;
    margin: 0 auto; /* Add this line for horizontal centering */
}

.top-img img {
    margin: 0;
    max-height: 6vh; /* Adjust if needed */

}
a {
  text-decoration: none;
  color: rgb(99, 91, 91);
}
.title-container {
    display: flex;
    justify-content: center; /* Horizontally centers .title-content */
    align-items: center; /* Vertically centers content */
    width: 100%;
    height: 6vh;
    min-height: 6vh;
    background-color: #f7f4ee;
    margin-top: 4vh;
    /*margin-top: 7vh;*/
}

.title-content {
    display: flex;
    align-items: center; /* Ensures icon and text align vertically */
}

.title-container img {
    width: 4em; /* May need adjustment based on actual font size */
    height: auto; /* Maintains aspect ratio */
    margin-right: 0.3em; /* Space between icon and title */
}

.page-title,
.page-title a {
    font-family: "proxima-nova", sans-serif;
    font-weight: 100 !important;
    font-style: normal;    
    color: black;
    text-decoration: none;
    margin: 0;
    padding: 0;
    line-height: 1em; /* Adjust based on the actual size of your text for better alignment */
    font-size: 1em; /* Ensures text size is directly related to parent font size, adjust as necessary */
}

.title-icon {
    max-width: 100px; /* Ensures icon does not exceed this width */
    max-height: 100%; /* Allows icon to scale within its container */
}
.button-container {
    white-space: nowrap; /* Prevents wrapping to a new line */
    padding: 10px; /* Adds some padding around the container */
}

.quick-action {
    display: inline-block; /* Allows the width and height to be set */
    opacity: 0; /* Start with buttons hidden */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    visibility: hidden; /* Ensures buttons are not interactable when invisible */
    width: 125px; /* Fixed width */
    height: 25px; /* Adjust height as needed */
    margin: 5px; /* Adds space between buttons */
    line-height: 20px; /* Centers text vertically, should match height */
    text-align: center; /* Centers text horizontally */
    background-color: transparent; /* Transparent background */
    border: 2px solid #8c8c8c; /* Black border, adjust thickness as needed */
    border-radius: 8px; /* Rounded corners */
    color: #8c8c8c; /* Black text */
    font-size: 14px; /* Adjust font size as needed */
    cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
    text-decoration: none; /* Removes underline from text if needed */
    padding: 0 15px; /* Adjust padding as needed, but may not be necessary with fixed width/height */
    outline: none; /* Removes the outline to keep the style clean */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}
.quick-action.visible {
    opacity: 1; /* Fully visible */
    visibility: visible; /* Make buttons interactable */
}
.quick-action:hover {
    background-color: rgba(0,0,0,0.1); /* Slightly dark background on hover for feedback */
    color: #333; /* Darker text color on hover */
    border-color: #333; /* Darker border color on hover */
}
.quick-action.action4 {
    width: auto; /* Allow dynamic width */
    min-width: 125px; /* Keep minimum width same as others */
    max-width: 250px; /* Prevent it from getting too wide */
}
.scroll-btn {
    display: none;
    background-color: transparent !important; /* Adjust as needed */
    color: black;
    border-radius: 50%;
    width: 40px; /* Adjust as needed */
    height: 40px; /* Adjust as needed */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.user-circle {
  cursor: pointer;
  position: fixed;
  top: 100px;
  left: 25px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #555;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  background: transparent;
  transition: all 0.3s;
  z-index: 111;
}

.user-circle:hover {
  border-color: #000;
  color: #000;
}

.org-popup {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: none;
  white-space: nowrap;
  z-index: 111;
}

.button-container2 {
    position: fixed;
    z-index: 111;
    /* Use your existing top/left values from menu-button and log-button */
}

.popup-text {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    white-space: nowrap;
    z-index: 111;
}

.button-container2:hover .popup-text {
    display: block;
}
.user-circle-container:hover .org-popup {
  display: block;
}
.user-circle-container {
    position: fixed;
    top: 100px;
    left: 25px;
    z-index: 111;
}
/* Style for the menu button */
.menu-button {
  cursor: pointer;
  position: fixed; /* Keeps the button at the top left */
  top: 25px; /* Slightly lower to give some margin */
  left: 25px; /* Slightly to the right to give some margin */
  background-color: transparent; /* No background for a cleaner look */
  color: #555; /* Toned down color */
  text-align: center;
  font-size: 40px; /* Adjust font size as needed */
  transition: color 0.3s; /* Smooth transition for hover effect */
  z-index: 111;
}

.menu-button:hover {
  color: #000; /* Darker color on hover */
}

/* Style for the log button */
.log-button {
  cursor: pointer;
  position: fixed; /* Keeps the button at the top left */
  top: 140px; /* Slightly lower to give some margin */
  left: 28px; /* Slightly to the right to give some margin */
  background-color: transparent; /* No background for a cleaner look */
  color: #555; /* Toned down color */
  text-align: center;
  font-size: 40px; /* Adjust font size as needed */
  transition: color 0.3s; /* Smooth transition for hover effect */
  z-index: 111;
}
/* Menu button container */
.menu-container {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 111;
}

.button-container2 {
    cursor: pointer;
    z-index: 111;
}

/* Log button container */
.button-container2:nth-child(3) {
    position: fixed;
    top: 140px;
    left: 28px;
    z-index: 111;
}

.log-button:hover {
  color: #000; /* Darker color on hover */
}
/* Adjusted style for the dropdown content for a cleaner look */
.dropdown-content {
  display: none; /* Initially hidden */
  position: fixed;
  left: 10px; /* Aligned with the button */
  top: 80px; /* Positioned right below the menu button */
  background-color: #f0f0f0; /* Light background for the dropdown */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding: 10px 0; /* Padding on top and bottom */
  z-index: 1111;
}

/* Style for the links inside the dropdown, with hover effect */
.dropdown-content a {
  padding: 8px 15px;
  display: block;
  text-decoration: none;
  color: #555; /* Toned down text color */
  transition: background-color 0.3s; /* Smooth transition for hover background */
}

.dropdown-content a:hover {
  background-color: #ddd; /* Light gray background on hover */
}

@media (max-width: 1150px) {
    .response-container {
        margin-top: 3vh;

    }
}
@media (max-width: 950px) {
    .response-container {
        margin-top: 3vh;

    }
}
@media (max-width: 700px) {
            html, body {
            height: 100%;
            margin: 0;
            overflow: hidden; /* Prevents scrolling on the body */
        }
        .container {
        height: 100vh; /* 100% of the viewport height */
        overflow: hidden; /* Prevents scrolling on the container */
        display: flex;
        flex-direction: column;
        }
            body, .container, .center-wrapper {
            margin: 0;
            padding: 0;
            }
        .top-img img {
            margin: 0;
            max-height: 6vh; /* Adjust if needed */
        }
        .page-title,
        .page-title a {
            font-size: 40px;
            font-weight: bold;
            color: black;
            text-decoration: none;
            margin: 0;
            padding: 0;
            line-height: 1;
            /* Adjust line height as needed */
        }
        .title-icon {
          /*  display: none; */
        }
        .top-container {
            height: 6vh; /* Adjust 15vh based on your actual top content height */
            min-height: 6vh; /* This ensures it takes up the rest of the screen */
            background-color: #f4f4f4;
            margin-top: 7vh;
        }
        .title-container {
            height: 6vh;
            min-height: 6vh;
            margin-top: 7vh;
        }        
        .title-container img {
            width: 1.5em; /* 1em to scale with the font size of the container */
            height: auto; /* Maintain aspect ratio */
        }
        .menu-button {
        top: 5px; /* Slightly lower to give some margin */
        left: 5px; /* Slightly to the right to give some margin */
        font-size: 20px; /* Adjust font size as needed */
        }
        .log-button {
        display: none;        
    }
        .dropdown-content {
        left: 10px; /* Aligned with the button */
        top: 30px; /* Positioned right below the menu button */
        }        
        .response-container {
            height: 83vh; /* Adjust 15vh based on your actual top content height */
            min-height: 83vh; /* This ensures it takes up the rest of the screen */
            width: 100vw; /* Ensure it covers the full viewport width */
            max-width: 100vw; /* Override any other max-width */
            border-radius: 0px;
            margin: 0 auto; /* Center it just in case */
            box-sizing: border-box; /* Include padding in width calculation */
            box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
        }
        .top-nav {
            background-color: transparent !important;

        }
        .copy-code-btn {
            display: none;
        }

        div#more-container {
            display: none !important;
        }
        #menu-container {
            display: inline-flex;
        }
        #upload-container {
            display: none;
        }        
        .action3 { 
            display: none;
        }
        .action4 { 
            display: none;
        }
}

.chat-container h1, .chat-container h2, .chat-container p {
    /* Example styles */
    margin: 0;
    padding: 0;
    color: #333; /* Adjust the color to fit your design */
}
@media screen and (max-height: 500px) {
  .top-img img {
    display: none;
  }
  .page-title {
    /*display: none;*/
  }
  /* Adjust the top container's padding or margin to ensure it's visible */
  .top-container {
    padding: 10px 0;
  }
}
/* Modal (background) */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: -15%;
    left: 0;
    width: 100%; /* Change width to viewport width */
    height: 115%; /* Change height to viewport height */
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}
.modal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    padding: 3vh 0;
    /* Add small, proportional padding top/bottom */
}
.modal-input {
    display: none; /* Switch to flex to show the modal */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width for full coverage */
    height: 100vh; /* Use viewport height for full coverage */
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}
.modal-mobile {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0%;
    left: 0;
    width: 100%; /* Change width to viewport width */
    height: 100%; /* Change height to viewport height */
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}
/* Modal Content/Box */
.modal-content {
    background-color: #e9e5df;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 2vh auto;
    /* Add small margin top/bottom */
}
.modal-content-menu {
  background-color: #e9e5df;
  padding: 20px;
  border: 1px solid #888;
  width: 90%; /* Adjust based on your preference */
  height: 100%;
}
.modal-content-more {
  background-color: #e9e5df;
  margin: 25% auto; /* Lower on the page */
  padding: 20px;
  border: 1px solid #888;
  width: 60%; /* Adjust based on your preference */
  max-width: 300px;
}
.modal-content-input {
    background-color: #e9e5df;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust based on preference */
    max-width: 600px; /* Maximum width */
    min-height: 200px; /* Minimum height to ensure visibility */
    margin: auto; /* Center horizontally */
    max-height: 80vh; /* Ensure it doesn't grow beyond viewport height */
    display: flex; /* Make this a flex container */
    flex-direction: column; /* Stack children vertically */
}
.modal-content-body {
    overflow-y: auto; /* This enables vertical scrolling if content exceeds max-height */
    padding: 10px; /* Adds some padding inside the content box */
    flex-grow: 1; /* Allow this element to grow and fill available space */
}
.grid-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally in the container */
  gap: 10px; /* Space between items */
  margin-bottom: 15px;
}
.grid-container2 {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally in the container */
  gap: 10px; /* Space between items */
  margin-bottom: 15px;
}

.grid-item2 {
  text-align: center; /* Center the content of grid items */
}
.more-title {
  margin-bottom: 0;
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}
  .url-input {
    width: 100%; /* Full width */
    padding: 10px 15px; /* Padding inside the input */
    margin: 8px 0; /* Margin for top and bottom */
    box-sizing: border-box; /* Include padding and border in the element's width */
    border: 2px solid #ccc; /* Border color */
    border-radius: 4px; /* Rounded corners */
    font-size: 16px; /* Text size */
    background-color: white; /* Background color */
    resize: vertical; /* Allow only vertical resizing */
  }

  .url-input:focus {
    border-color: #4A90E2; /* Change border color on focus */
    outline: none; /* Remove the default focus outline */
    box-shadow: 0 0 8px 0 rgba(74,144,226,0.5); /* Add a soft glow effect */
  }
@media (max-width: 800px) {
.modal-content {
    width: 90%;
    max-width: 90%;
    height: 105%;
    max-height: 105%;
}
.modal-content-more {
    width: 90%;
    max-width: 90%;
    height: 105%;
    max-height: 105%;
    position: fixed;
    top: -20%;
    left: 0;}
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two items in a row */
  gap: 20px;
  text-align: center;
}

.grid-item {
  padding: 10px;
}

.grid-item img, 
.grid-item button, 

.grid-item p {
  display: block; /* Ensures each element takes up the full width of its container */
  margin: auto; /* For centering, especially useful for the image and button */
}
.grid-item img {
    width: 80px;
    /* Adjust size as needed */
    height: auto;
    margin-bottom: 15px;
    /* Adjusted for spacing */
    cursor: pointer;
}
.grid-item2 img {
    width: 30px;
    /* Adjust size as needed */
    height: auto;
    margin-bottom: 5px;
    /* Adjusted for spacing */
    cursor: pointer;
}

.img-button {
  background-color: #f6ba39; /* Button color */
  color: white;
  padding: 10px 15px;
  margin: 0 auto 15px; /* Adjusted for spacing, auto centers the button horizontally */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%; /* Makes the button expand to the full width of its parent */
  max-width: 200px; /* Optionally limit the button width */
}

.img-button:hover {
  background-color: #e3a41b;
}
.link-button {
  background-color: #cbb88f; /* Button color */
  color: white;
  padding: 10px 10px;
  margin: 0 auto 1px; /* Adjusted for spacing, auto centers the button horizontally */
  margin-top: 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  width: 100%; /* Makes the button expand to the full width of its parent */
  max-width: 200px; /* Optionally limit the button width */
}

.link-button:hover {
  background-color: #b09f7b;
}
.img-button2 {
  background-color: #f6ba39; /* Button color */
  color: white;
  padding: 5px 10px;
  margin: 0 auto 15px; /* Adjusted for spacing, auto centers the button horizontally */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 170px; /* Makes the button expand to the full width of its parent */
  max-width: 100%; /* Optionally limit the button width */
}
.img-button3 {
  background-color: #f6ba39; /* Button color */
  color: white;
  padding: 5px 10px;
  margin: 0 auto 15px; /* Adjusted for spacing, auto centers the button horizontally */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 200px; /* Makes the button expand to the full width of its parent */
  max-width: 100%; /* Optionally limit the button width */
}

.img-button2:hover {
  background-color: #e3a41b;
}
.img-button3:hover {
  background-color: #e3a41b;
}
.grid-item p {
  margin-top: 0;
  margin-bottom: 20px; /* Add bottom margin if you need space below the paragraph */
}
.fixed-width-select {
    width: 200px; /* Adjust the width as needed */
    max-width: 100%; /* Ensure it doesn't overflow its container */
}
.fixed-width-select2 {
    width: 170px; /* Adjust the width as needed */
    max-width: 100%; /* Ensure it doesn't overflow its container */
}
/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Full-screen */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0, 0.5); /* Black background with opacity */
    z-index: 1202; /* Sit on top */
}

.loadingContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; /* Ensure text aligns center */
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto; /* Center the loader horizontally */
    animation: spin 1s linear infinite;
}

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

.loadingContent > p {
    color: white; /* Ensure text color is visible against the overlay */
    font-size: 16px; /* Adjust as needed */
    margin-top: 20px; /* Space between loader and text */
}
pre, code {
    background-color: #f5f5f5; /* Light grey background */
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 5px; /* Rounded corners */
    font-family: 'Courier New', Courier, monospace; /* Monospaced font for code */
    overflow-x: auto; /* Horizontal scrolling for long lines */
    padding: 10px; /* Padding inside the code block */
    display: block; /* Ensure it's block-level for proper margin handling */
    margin: 10px 0; /* Add some margin above and below */
    white-space: pre-wrap; /* Ensures that long lines wrap */
    word-wrap: break-word; /* Break words to prevent horizontal scrolling */
}

/* If you want to specifically style code inside pre separately */
pre code {
    background-color: transparent; /* Avoid double background for code inside pre */
    border: none; /* Avoid double border */
    padding: 0; /* No additional padding needed */
}
.code-block-wrapper {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
}
.copy-code-btn {
    display: inline-block;
    margin: 5px 0;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

.copy-code-btn:hover {
    background-color: #0056b3;
}
.copy-api-response-btn {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000000; /* or any color you prefer */
}
.copy-api-response-btn:hover {
    color: #a9a1a1; /* or any color you prefer */
    background-color: transparent !important;

}
/* Adjust the size of the icon */
.copy-api-response-btn i {
    font-size: 20px;
}

#copyConfirmationMessage {
    display: none; /* Hidden by default */
    position: fixed; /* Positioned relative to the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position to truly center based on the element's size */
    padding: 10px 20px;
    background-color: #4CAF50; /* Success message color */
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Optional: Adds a subtle shadow */
    z-index: 1050; /* Ensure it's above most other content */
    transition: opacity 0.3s ease-in-out;
    opacity: 0; /* Start invisible for the fade-in effect */
}
.tts-api-response-btn {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000000; /* or any color that fits your design */
    margin-left: 5px; /* Space between copy and TTS buttons */
}
.tts-api-response-btn:hover {
    background-color: transparent !important;
    color: #a9a1a1; /* or any color that fits your design */
}
.tts-api-response-btn i {
    font-size: 16px; /* Adjust based on your design */
}
#bottom-cover {
    display: none; /* Hidden by default */
    position: fixed; /* Or absolute, depending on your layout */
    left: 0;
    right: 0;
    bottom: 0;
    height: 84vh; /* Adjust 15vh based on your actual top content height */
    background-color: #d0cbc5; /* Match your page's background color */
}

@media (max-width: 700px) {
    #bottom-cover {
        display: none; /* Only show on small screens */
        height: 20vh; /* Adjust 15vh based on your actual top content height */
        z-index: -1;
    }
}
#logs a {
    color: inherit; /* Use the default text color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

#logs a:hover {
    color: #007bff; /* Change text color on hover */
}
        .qa_custom_container {
            max-width: 800px; /* Increased width */
            min-width: 80%;
            margin: 0 auto;
            padding: 20px;
            /* Removed background color */
        }
        .qa_question_area {
            background-color: #e9ecef;
            padding: 15px;
            border-radius: 12px; /* More rounded corners */
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
        }
        .qa_custom_textarea {
            width: 96%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 12px; /* More rounded corners */
            resize: vertical;
            min-height: 250px;
            max-height: 400px; /* Limit maximum height */
            font-size: 16px;
            line-height: 1.5;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05); /* Inner and outer shadow */
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .qa_custom_textarea:focus {
            outline: none;
            border-color: #f6ba39;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 8px rgba(74,144,226,0.6);
        }
        .custom-textarea {
            width: 96%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 16px;
            line-height: 1.5;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
            transition: border-color 0.3s, box-shadow 0.3s;
            margin-bottom: 20px;
        }

        .custom-textarea:focus {
            outline: none;
            border-color: #f6ba39;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 8px rgba(74,144,226,0.6);
        }

        .small-textarea {
            min-height: 50px;
            max-height: 100px;
            resize: none;
        }
        
        .large-textarea {
            min-height: 250px;
            max-height: 400px;
            resize: vertical;
        }
        #user_text_box, #qa_response_area {
            margin-top: 20px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 12px;
            background-color: #fff;
        }
        .info-section {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 30px;
        }

        .main-info {
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        .steps, .important-notes {
            margin-bottom: 20px;
        }

        .steps ol, .important-notes ul {
            margin: 10px 0;
            padding-left: 25px;
        }

        .steps li, .important-notes li {
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .language-note {
            color: #666;
        }
        .user_text_content, .response_content {
            line-height: 1.6;
        }

        #dlpdfButton {
            margin-top: 15px;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #f6ba39;
            color: #ffffff;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }

        #dlpdfButton:hover {
            background-color: #f5b124;
        }        
        .qa_word_count {
            margin-top: 10px;
            font-size: 0.9em;
            color: #666;
        }
        .qa_send_button {
            background-color: #f6ba39;
            color: #fff;
            border: none;
            padding: 12px 25px;
            border-radius: 10px; /* Pill-shaped button */
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .qa_send_button:hover {
            background-color: #e3a41b;
        }
        .qa_custom_modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.4);
        }
        .qa_modal_content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: none;
            width: 300px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .qa_modal_buttons {
            margin-top: 20px;
        }
        .qa_modal_buttons button {
            margin: 0 10px;
            padding: 10px 20px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        #qa_confirm_yes {
            background-color: #f6ba39;
            color: white;
        }
        #qa_confirm_yes:hover {
            background-color: #e3a41b;
        }
        #qa_confirm_no {
            background-color: #f0f0f0;
            color: #333;
        }
        #qa_confirm_no:hover {
            background-color: #e0e0e0;
        }
.user_text_box {
            background-color: #ffffff;
            padding: 15px;
            border-radius: 12px; /* More rounded corners */
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */     
}

.user_text_content {
    white-space: pre-wrap;
}

.qa_response_area {
            background-color: #aef5cd;
            padding: 15px;
            margin-top: 10px;
            border-radius: 12px; /* More rounded corners */
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
}
p {
    margin-bottom: 10px !important;
}
.explainable {
    border-bottom: 1px dotted #888;
    cursor: help;
}
#audioMeterContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    margin-top: 20px;
    position: relative;
}

#pulsatingCircle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #808080;
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.3);
    transition: all 0.3s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

#pulsatingCircle.loading {
    border-color: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#circleText {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #007bff;
    text-align: center;
    cursor: pointer;
}

#pulsatingCircle.active {
    border-color: #e3a41b;
}

#startButton {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    background: none;
    border: none;
    color: #e3a41b;
    cursor: pointer;
}

#pulsatingCircle:hover #startButton {
    color: #e3a41b;
}
#sendText {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    color: red;
    font-weight: bold;
    cursor: pointer;
}
.search-container {
    position: relative;
    width: 100%;
}

.search-container textarea {
    width: 100%;
    position: relative;
    z-index: 1;
}

.search-container img {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
}
.search-container img:hover {
    opacity: 0.7;
}
/* Hover tooltip for search icon */
#search-toggle-icon:hover+.search-tooltip {
    display: block;
}

.search-tooltip {
    position: absolute;
    right: 15px;
    /* Align with the icon */
    top: -15px;
    /* Position above the icon */
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 3;
    /* Above the icon */
    display: none;
}
.icon-tooltip-container {
    position: relative;
    display: inline-block;
}

.icon-tooltip {
    position: absolute;
    left: 50%;
    top: -35px;
    /* Position above the icon */
    transform: translateX(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 1000;
    display: none;
}

.icon-tooltip-container:hover .icon-tooltip {
    display: block;
}

/* Preserve any existing styles for your icons */
.icon-tooltip-container img {
    max-width: 100%;
    max-height: 100%;
}
@media (max-width: 768px) {
    .search-container img {
        display: none;
    }
}
.btn-tooltip-container {
    position: relative;
    display: inline-block;
}

.btn-tooltip {
    position: absolute;
    left: 100%;
    bottom: 100%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 1000;
    display: none;
    margin-bottom: 5px;
}

/* Only show tooltip on hover when button has 'visible' class */
.btn-tooltip-container:hover .btn-tooltip {
    display: none;
    /* Hide by default even on hover */
}

.btn-tooltip-container:hover .quick-action.visible+.btn-tooltip {
    display: block;
    /* Only show when button is visible */
}
.dot-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-text {
    font-style: italic;
    color: #666;
    margin-left: 8px;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.screenCapture-image-container {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
}
.toggle-switch-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 300px;
}

.toggle-input {
    display: none;
}

.toggle-background {
    position: relative;
    background-color: #f0f0f0;
    border-radius: 25px;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px;
    overflow: hidden;
}

.toggle-slider {
    position: absolute;
    width: 50%;
    height: calc(100% - 4px);
    background-color: #2196F3;
    border-radius: 23px;
    transition: transform 0.3s ease;
    left: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-input:checked+.toggle-label .toggle-slider {
    transform: translateX(calc(100% - 4px));
}

.toggle-option {
    flex: 1;
    text-align: center;
    z-index: 1;
    transition: color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    user-select: none;
}

/* Default state - Hele bildet selected */
.toggle-option.left {
    color: white;
}

.toggle-option.right {
    color: #666;
}

/* Checked state - Tekst fra bilde selected */
.toggle-input:checked+.toggle-label .toggle-option.left {
    color: #666;
}

.toggle-input:checked+.toggle-label .toggle-option.right {
    color: white;
}

/* Hover effect */
.toggle-background:hover .toggle-slider {
    background-color: #1976D2;
}
@media screen and (max-width: 768px) {
    .screenshot-grid-item {
        /* Add this class to your div */
        display: none;
    }
}
#personalInfoModal .fixed-width-select {
    width: 200px;
    margin: 10px 0;
}
.modal-title {
    text-align: center;
    margin-bottom: 20px;
}