@charset "UTF-8";

/* ----- Global overflow control ----- */
html, body {
    height: 100%;
    overflow-x: hidden;               /* hard kill sideways scroll */
    overscroll-behavior-y: none;      /* prevent page bounce chaining */
  }
  
  
  /* Main area must be flex child that can shrink */
  .dashboard-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;                          /* allows inner scroller */
    height: auto;
    overflow: hidden;                       /* no scroll here */
  }
  
  /* Chat shell becomes a column layout */
  .chat-with-bot-container,
  .new-chat-with-bot-container,
  .live-chat-container,
  .embed-script-chat-container,
  .display-bot-memory-container,
  .site-visitor-chat-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;                          /* critical for flex scroll */
    height: auto;
    overflow: hidden;                        /* no scroll here either */
    touch-action: pan-y;                     /* allow only vertical panning */
    overscroll-behavior: contain;            /* trap overscroll bounce */
  }
  
  /* Make the message stream the ONLY vertical scroller */
  #full-conversation,
  .glass-stream {
    /* Remove height:70% from your current CSS */
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    width: 100% !important;                 /* avoid 80% + left offset on small screens */
    left: 0 !important;
  }
  
  /* Composer: stick to bottom and account for safe area */
  .prompt2.glass-input {
    position: sticky !important;
    bottom: 0;
    margin-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.8);      /* give it a surface so content scrolls underneath */
    backdrop-filter: blur(6px);
    z-index: 5;
  }
  
  /* If textarea is inside .prompt2, make it expand nicely */
  #chat-input {
    max-height: 30dvh;                      /* don’t let it overgrow */
    overflow-y: auto;
  }
  
  /* Content columns next to sidenav: compute width instead of 80%+left */
  @media (min-width: 1250px) {
    :root { --sidebar-w: 300px; }            /* matches your 20% */
    .chat-with-bot-container,
    .embed-script-chat-container,
    .display-bot-memory-container,
    .new-chat-with-bot-container,
    .site-visitor-chat-container,
    .live-chat-container {
      width: calc(100% - var(--sidebar-w)) !important;
      margin-left: var(--sidebar-w);
      left: 0 !important;
    }
  }
  
  /* Content hygiene to prevent horizontal overflow */
  .glass-stream, #full-conversation, .bot-message-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .bot-message-content img,
  .glass-stream img { max-width: 100%; height: auto; }
  .bot-message-content pre,
  .bot-message-content code,
  .code-outer { max-width: 100%; overflow-x: auto; }
  
  /* Belt and suspenders: no horizontal scroll anywhere */
  * { max-inline-size: 100%; }

  























#dropdown-toggle.dropdown-toggle::after {
    display: none; /* Hide the pseudo-element arrow */
}
#dropdown-toggle2.dropdown-toggle::after {
    display: none; /* Hide the pseudo-element arrow */
}
#dropdown-toggle3.dropdown-toggle::after {
    display: none; /* Hide the pseudo-element arrow */
}
#dropdown-toggle4.dropdown-toggle::after {
    display: none; /* Hide the pseudo-element arrow */
}
#dropdown-toggle5.dropdown-toggle::after {
    display: none; /* Hide the pseudo-element arrow */
}
.dropdown-toggle.dropdown-toggle::after {
    display: none; /* Hide the pseudo-element arrow */
}
#log-out .fa-chevron-down {
    display: none;
}
#installAssistant .fa-chevron-down {
    display: none;
}

.typing-indicator span {
    display: inline-block;
    margin: 0 2px;
    font-size: 24px;
    animation: blink 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.conversation-actions {
    left: 0px;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    }
    
.topbar-logo {
display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  text-decoration: none;
  height: 100%;

}
.topbar-logo img {
  width: 70px; 
  height: 70px; 
}
.logo-part1 {
  font-size: 18px; 
  color: #000;
  font-weight: 400; 
  width: 70%;
}
.sidenav {
left: 0;
position: absolute;
height: 100%;
width: 20%;
max-width: 350px;  
color: #000;
z-index: 9999;
background: rgba(255, 255, 255, 0.2);
-webkit-backdrop-filter: blur(1px);
backdrop-filter: blur(1px);
box-shadow: 5px 0 15px rgba(0,0,0,0.1);
transition: left 0.5s ease;
overflow-y: auto;
overflow-x: hidden;
}
/* For Webkit browsers */
.sidenav::-webkit-scrollbar {
  width: 2px;
}

.sidenav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.sidenav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* For Firefox */
.sidenav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.05);
  display: block;
}
.lottieContainer {
position: relative;
width: 80px;
height: 80px;
}
#chatWithBot {
position: relative;
top: 5%;
left: 50%;
transform: translateX(-50%);
padding: 20px 20px;
border: 1px;
z-index: 1000;
display: flex;
text-align: left;
width: 100%;
cursor: pointer;
background-color: transparent;
font-size: 18px;
}

.toggle-chat {
transition: transform 0.2s, box-shadow 0.2s;
position: relative;
overflow: hidden;
z-index: 1;
/* Pulsing gradient for inactive state */
background-image: linear-gradient(45deg, #9e9e9e, #e0e0e0);
color: #000;
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
cursor: pointer;
padding: 10px;
text-align: center;
}

/* Additional styles as needed */

/* Hover effect */
.toggle-chat:hover::after {
/* Pulsing effect for hover, similar to your active state for consistency */
animation: pulse 2s infinite linear;
}

.toggle-chat.active {
/* Active state styles */
background-image: linear-gradient(45deg, #6e8efb, #88e3a777);
color: white;
}

.toggle-chat::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(60deg, rgba(255,255,255,0.15), rgba(255,255,255,0.5), rgba(255,255,255,0.15));
z-index: -1;
animation: none;
}

.toggle-chat.active::after {
/* Ensure the pulsing animation plays for the active state */
animation: pulse 2s infinite linear;
}

@keyframes pulse {
0% {
transform: rotate(0deg) translateX(-100%);
}
50% {
transform: rotate(360deg) translateX(100%);
}
100% {
transform: rotate(720deg) translateX(-100%);
}
}

.toggle-chat i, .dropdown-toggle i {
margin-right: 10px; /* Space between icon and text */
}
.dropdown-toggle i:first-child {
margin-left: 50px; /* Space between text and second icon */
position: relative;
}

.dropdown-toggle i:last-child {
margin-left: auto;
}
.dropdown-toggle i {
margin-left: 5px; /* Spacing between text and icon */
color: inherit; /* Icon color matches text */
right: 5%;
position: absolute;
}
.dropdown-content {
position: absolute;
background-color: transparent;
width: 100%;
z-index: 1;
text-align: left;
	color: black;
	padding-left: 35px;
	padding-bottom: 15px;
}

#dropdown-content5 a:hover {
    background-color: transparent;
    color: black;
    text-decoration: underline;
}

.dropdown-content a {
	color: black;
}


.dropdown-content a {
padding: 1px 16px;
text-decoration: none;
display: block;
}

.dropdown-content a:hover {
background: rgba(255, 255, 255, 0.5);
-webkit-backdrop-filter: blur(1px);
backdrop-filter: blur(1px);
}

.dropdown-toggle {
cursor: pointer;
padding: 10px;
border: none;
text-align: left;
width: 100%;
font-size: 16px;
background-color: transparent;
padding-left: 10px;
padding-right: 0px;
justify-content: space-between;
}

.dropdown-toggle:hover {
background-color: none; 
}

.dropdown {
position: relative;
width: 100%; 
margin-bottom: 2%; 
/* top: 9%; */
}
.dropdown:last-child {
margin-bottom: 0;
}
#dropdown-content {
display: none;
position: absolute;
left: 0;
top: 100%;
width: 90%;
}
.div26, .div98, .div101, .uploadForm {
display: none;
overflow: hidden;
flex-direction: column;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
border-radius: 5px;
padding: 1px;
background: rgba(255, 255, 255, 0.2);
-webkit-backdrop-filter: blur(1px);
backdrop-filter: blur(1px);
width: 100%;
margin-left: auto;
margin-right: auto;
margin-bottom: 2%;
}
.div27, .div99, .div100 {
position: relative;
}

.div99 {
display: flex;
flex-direction: column;
align-items: start; 
justify-content: space-between; 
width: 100%; 
height: auto; 
}
.div98::-webkit-scrollbar {
width: 3px;
}

.div98::-webkit-scrollbar-thumb {
background-color: darkgrey;
border-radius: 10px;
}  


.div100 {
display: flex;
flex-direction: column;
align-items: start; 
justify-content: space-between; 
width: 100%; 
height: auto; 
}

.div101::-webkit-scrollbar {
width: 3px;
}

.div101::-webkit-scrollbar-thumb {
background-color: darkgrey;
border-radius: 10px;
}  

.div27 {
display: flex;
flex-direction: column;
align-items: start; 
justify-content: space-between; 
width: 100%; 
height: auto; 
}

.div26::-webkit-scrollbar {
width: 3px;
}

.div26::-webkit-scrollbar-thumb {
background-color: darkgrey;
border-radius: 10px;
}
.log-out {
    position: relative;
    border-radius: var(--br-7xs);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: var(--padding-sm-5) var(--padding-137xl) var(--padding-sm-5) var(--padding-xs);
    gap: var(--gap-xs);
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.svg-logout {
position: relative;
width: 1rem;
height: 1rem;
overflow: hidden;
flex-shrink: 0;
object-fit: cover;
margin-right: 4px;
}

.logout-text {
position: relative;
line-height: 20px;
font-size: 18px;
font-weight: 500;
}
.prompt1 {
position: relative;
height: 40px;
width: 90%;
display: flex;
align-items: center;
justify-content: center;

}

.prompt2 {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    /* height: 40px; */
    width: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: white;
    z-index: 1000;
    background-color: transparent;
}

/* .prompt2 {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    box-sizing: border-box;
    z-index: 1000;
    background-color: transparent;
} */
.icons8-baixar-50-3 {
width: 1.06rem;
height: 1.06rem;
object-fit: cover;
cursor: pointer;
margin-right: 10px;
}
#full-conversation {
  display: flex;
  height: 70%;
  overflow-y: auto;
  width: 80%;
  position: relative;
  flex-direction: column;
  left: 10%;
  scroll-padding-bottom: 96px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

button {
background-color: #9c9d9f;
color: #000;
border: none;
padding: 10px 15px;
font-size: 18px;
font-weight: 700;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}

#uploadBtn {
background-image: url('/./public/silver.jpg');
background-size: cover;
background-position: center; 
color: #000;
border: none;
padding: 10px 15px;
font-size: 18px;
font-weight: 700;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
width: 80%;
margin: 25px;

}
button:hover {
text-decoration: underline;

}


#uploadStatus {
margin-top: 15px;
font-size: 14px;
color: #333;
}
.loader {
border: 4px solid #f3f3f3;
border-radius: 50%;
border-top: 4px solid #3498db;
width: 20px;
height: 20px;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
}

/* Keyframes for spinning animation */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

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

/* /* #live-chat-container, #chat-with-bot-container, #site-visitor-chat-container {
display: none;
} */
.hidden {
display: none;
}
#embed1 {
width: 100%;

} */
.embed {
    white-space: normal; /* Allows the text to wrap to the next line */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    overflow-y: auto; /* Allows vertical scrolling if content overflows vertically */
    width: 100%; /* Ensures div does not exceed the width of its container */
    box-sizing: border-box; /* Includes padding and border in width/height calculation */
    word-break: break-word; /* Ensures long words do not cause the content to overflow */
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
-webkit-backdrop-filter: blur(1px);
backdrop-filter: blur(1px);
border-radius: 5px;
}

.embed-script-chat-container{
height: 100%;
overflow-y: auto;
width: 80%;
position: relative;
flex-direction: column;
left: 20%;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
border-radius: 5px;
background: rgba(255, 255, 255, 0.2);
-webkit-backdrop-filter: blur(1px);
backdrop-filter: blur(1px);
padding: 40px;
}

.display-bot-memory-container{
display: none;
height: 100%;
overflow-y: auto;
width: 80%;
position: relative;
flex-direction: column;
left: 20%;
}
.new-chat-with-bot-container{
display: none;
height: 100%;
overflow-y: auto;
width: 80%;
position: relative;
flex-direction: column;
left: 20%;
}  
.site-visitor-chat-container {
display: none;
height: 100%;
overflow-y: auto;
width: 80%;
position: relative;
flex-direction: column;
left: 20%;
}
.live-chat-container {
display: none;
overflow-y: auto;
width: 80%;
position: relative;
flex-direction: column;
height: 100vh;
justify-content: space-between;
left: 20%;
}
.chat-with-bot-container {
  height: 100%;
  /* overflow-y: auto; */
  width: 80%;
  position: relative;
  flex-direction: column;
  left: 20%;
}


html {
scroll-behavior: smooth;
}
.menu-hamburguer {
display: none;
}

h1 {
top: 0;
position: relative;
margin: 0;
}
h2 {
top: 25%;
position: relative;
}
h3 {
top: 25%;
position: relative;
}
#loadingMessage {
text-align: left;
width: 80%;
position: relative;
top: 12%;
font-weight: 300;
font-size: 16px;
animation: none;
}
#loadingMessage p {
text-shadow: none;
color: #000;
}
.icon-container {
display: flex;
justify-content: space-around;
align-items: center;
top: 30%;
position: relative;
margin-right: 10%; 
}

.icon-link {
display: flex;
flex-direction: column; /* Change to row if you prefer icon beside text */
align-items: center;
text-decoration: none; /* Remove underline from links */
color: #333; /* Text color */
margin: 0 10px; /* Spacing between items */
}

.icon-link i {
margin-bottom: 4px; /* Spacing between icon and text */
font-size: 24px; /* Icon size */
}

/* Style for hover effect */
.icon-link:hover {
color: #007bff; /* Color when hovered */
}

.container_chatWithBot_button {
position: absolute;
top: 3%;
right: 15%;
}

input[type="file"] {
margin-bottom: 20px;
}

input[type="radio"] {
margin-right: 5px;
margin-bottom: 25px;
}

label {
margin-bottom: 30px;
font-size: 14px;
color: #666;
}
.trash-can-button {
background: none;
border: none;
cursor: pointer;
order: 1; /* Order for the trash can button */
padding: 0;
width: 1.06rem;
height: 1.06rem;
object-fit: cover;
}
.admin-trash-can-button {
background: none;
border: none;
cursor: pointer;
order: 1; /* Order for the trash can button */
padding: 0;
width: 1.06rem;
height: 1.06rem;
object-fit: cover;
}

.col-lg-3 {
margin-bottom: 10px;
}

/* .user-name {
    font-size: 15px;
} */
.svg-icon14 {
    position: relative;
    width: 1rem;
    height: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover;
    margin-right: 4px;
    margin-left: 5px;
  }

.a12 .user-name {
    font-size: 14px;
    font-weight: bold;
}

.a12 .user-email {
    font-size: 10px;
    color: grey;
}

.user-info {
width: 80%;
}

#loadingIndicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

#pdf-memory-bot h1 {
    font-size: 24px;
    color: navy;
    margin-top: 20px;
}

#pdf-memory-bot h2 {
    font-size: 20px;
    color: darkgreen;
    margin-top: 15px;
}

#pdf-memory-bot h3 {
    font-size: 18px;
    color: darkgrey;
    margin-top: 15px;
}

#pdf-memory-bot p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    white-space: pre-wrap; /* Ensure white space is preserved */
}

#pdf-memory-bot ul {
    list-style-type: disc;
    padding-left: 20px;
}

#pdf-memory-bot li {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    list-style-position: inside; /* Ensure bullets are inside the list */
}

.new-page-section {
    margin-top: 20px; /* Adjust as needed for sufficient spacing */
    padding-top: 10px; /* Optional, for added space */
}

.stop-typewriter-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 12px;
    cursor: pointer;
    font-size: 1rem;
    /* margin-left: 3px; */
    transition: background 0.2s;
    display: block;
    margin: 12px auto;
    z-index: 10;
}
.stop-typewriter-btn:hover {
    background: #a9a9a9;
}

/* Makes code blocks stand out and easy to read */
.bot-message-content pre,
.bot-message-content pre code {
    background: #585858;
    color: #f8f8f2;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace !important;
    font-size: 14px;
    margin: 1em 0;
    /* Optional shadow for clarity */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    line-height: 1.4;
    white-space: pre;
    word-break: normal;
    outline: 1px dashed #98abbd;
}
pre code::before,
pre code::first-line {
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bot-message-content pre {
    padding: 14px; /* padding only on outer pre */
}

.bot-message-content pre code {
    padding: 0; /* ensure no inner padding */
}
.code-outer {
    background: #2863ca70;
    color: #f8f8f2;
    border-radius: 8px;
    padding: 14px;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 14px;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    line-height: 2.5;
    white-space: pre;
    word-break: normal;
    outline: 1px dashed #929ecb;
    overflow-x: auto;
}

.code-inner code {
    padding: 0;
}
/* Optional: Make copy button look better */
.copy-btn {
    position: absolute;
    right: 18px;
    top: 12px;
    background: #4b5563;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    padding: 2px 11px;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}
.copy-btn:hover {
    background: #fff;
}

.hljs, .hljs code, .hljs pre {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace !important;
    font-size: 15px;
    line-height: 1.6 !important;
}

*:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(160, 160, 160, 0.25); /* very subtle light gray */
}

/* ===== SCROLL NORMALIZATION (FINAL OVERRIDES) ===== */

/* No horizontal scroll anywhere */
html, body { overflow-x: hidden !important; }

/* Page and main never scroll; let inner list handle it */
body.dashboard-chat-body,
.dashboard-main { overflow: hidden !important; }

/* Shell must NOT scroll (y or x) */
.chat-with-bot-container { 
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* Make sure shell doesn't introduce horizontal overflow */
.dashboard-main > .chat-with-bot-container {
  width: 100% !important;
  left: 0 !important;
}

/* On wide screens, honor the 20% sidebar using margin instead of 'left' */
@media (min-width: 1250px) {
  :root { --sidebar-w: 300px; } /* matches your 20% sidebar */
  .dashboard-main > .chat-with-bot-container {
    width: calc(100% - var(--sidebar-w)) !important;
    margin-left: var(--sidebar-w) !important;
    left: 0 !important;
  }
}

/* The ONLY vertical scroller */
#full-conversation {
  /* override old values like height:70%, width:80%, left:10% */
  height: auto !important;
  width: 100% !important;
  left: 0 !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* Keep content from causing sideways scroll */
#full-conversation,
.glass-stream,
.bot-message-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bot-message-content img,
.glass-stream img { max-width: 100%; height: auto; }
.bot-message-content pre,
.bot-message-content code,
.code-outer { max-width: 100%; overflow-x: auto; }

/* Composer pinned, safe on mobile (wins over older absolute rule) */
.prompt2.glass-input {
  position: sticky !important;
  bottom: 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 5;
}
