/* chat-view.css */

:root {
  --btn-bg: var(--primary-color);
  --btn-border: var(--primary-color);
  --btn-text: #e6edf3;
  --btn-caret: #9ca3af;
  --btn-radius: 10px;
  --btn-font-size: 16px;
  --btn-padding-y: 8px;
  --btn-padding-x: 12px;
  --btn-gap: 6px;
}

.main-screen {
  height:100%;     
}


.chat {
  position: relative; /* important so absolute child anchors to it */
  width: clamp(300px, 70vw, 785px);
  margin: 0 auto;
  height: auto;
  padding-top: 5vh;
}

.chat-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  border-radius: 12px;
  padding: 20px;
}

.chat-wrapper {
flex: 1;
}

/* SCROLL BAR ***********************************************************/
.scroll-container {
height: auto;        /* fill parent container */
overflow-y: auto;   
padding-top: 0;      /* optional, only if i need space */
padding-bottom: 0;   /* optional, only if i need space */
}

/* Width of scrollbar */
.scroll-container::-webkit-scrollbar {
  width: 8px; /* width of vertical scrollbar */
}

/* Track (background behind the thumb) */
.scroll-container::-webkit-scrollbar-track {
  background-color: #222; /* dark color for track */
  border-radius: 6px;

}

/* Thumb (the draggable part) */
.scroll-container::-webkit-scrollbar-thumb {
  background-color: #555; /* color of thumb */
  border-radius: 6px;

 /* Optional: shrink slightly so padding works */
  min-height: 5px; 
}
/* SCROLL BAR ***********************************************************/


/* CHAT HEADER ***********************************************************/
.chat-header {
  position: fixed;
  top: 0;
  left: 56px;
  right: 0;
  height: 50px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: flex-end; /* optional: move button to right */
  box-sizing: border-box;
  z-index: 9998;
}

.model-btn {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: var(--btn-gap);
  padding: 10px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--btn-font-size);
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  height: 36px;
  margin-top: 6.5px;
}

.model-text {
  position: absolute;
  left: 120px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 350;
  color: #9ca3af;
}
/* make an arrowhead using borders */
.model-btn__caret {
  position: relative;
  top: 1px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--btn-text-color, black);
  border-bottom: 2px solid var(--btn-text-color, black);
  border-width: 1.5px;
  transform: rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
  margin-left: 4px;
}





.infinity-button {
  position: absolute; /* inside flex container */
  margin-top: 16px;
  margin-right: 4px;
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  background-size: 50% 50%; /* scale image */
  background-repeat: no-repeat;
  background-position: center;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 25%;
  cursor: pointer;
  opacity: 0.3;
  pointer-events: none;
}


/* CHAT HEADER END ***********************************************************/


/* CHAT FOOTER  ***********************************************************/
.chat-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  justify-content: center; /* horizontal */
  height: 60px;
  display: flex;
  align-items: flex-end;   /* stick to bottom */
  background: var(--primary-color);
  pointer-events: none; /* So only pill is clickable */
  z-index: 9996;
}
/* CHAT FOOTER END  ***********************************************************/


.gpt-warning-text {
  margin-right: 25px;
  font: 1em sans-serif;
  color: var(--text-color);
  font-weight: 500;
  font-size: 12px;
  padding-bottom: 6px;
}

.test2{
  display: flex;
  flex-direction: column;  /* stack vertically */
  align-items: center;     /* center horizontally (optional) */
}


.animated-text-container {
  position: fixed;
  bottom: 60%;
  left: calc(47.25% + var(--sidebar-offset));
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
} 

.animated-text {
  font-size: 26px;
  color: var(--text-color);
  text-align: center;
  align-items: center;
}
