@font-face {
  font-family: "UI-sans";
  src: url(./Assets/fonts/UI-Sens-serif/static/OpenSans-Light.ttf);

}

:root {
  --bg-Black: #181818;  /* Black Background */
  --bg-Dark-Gray: #212121;  /* Dark Gray Background */
  --bg-Light-Gray: #303030;    /* Light Gray Background */
  --bg-Full-Gray: #494949;  /* Full Light Gray Background*/
  --bg-Dark-Purple: #373669;  /* Purple Background */
  --bg-Light-Purple: #414071;   /* Light Purple Background*/
  --text-Gray: #afafaf;   /* Gray Text*/
  --text-White: #ffffff;  /* White Text*/
  --text-Pink: #dcdbf6;   /* Pink Text */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "UI-sans", sans-serif;
  color: var(--text-White);
  display: flex;
  height: 100vh;
  /* overflow: hidden; */
}

/* sidebar started */
#sideBar {
  padding: 12px;
  background-color: var(--bg-Black);
  width: 250px;
  height: 100vh;
  position: relative;
}

.stickybar {
  position: sticky;
  top: 0px;
  z-index: 1;
}

.martop {
  margin-top: 15px;
}

.logo-nav {
  display: flex;
  justify-content: space-between;
  padding-right: 10px;
  align-items: center;
}

.btn-div-flex button {
  display: flex;
  flex-direction: row;
  text-align: left;
  align-items: center;
  background-color: transparent;
  color: var(--text-White);
  font-size: 0.78rem;
  padding: 8px 4px;
  width: 100%;
  gap: 7px;
  border: none;
  border-radius: 10px;

  cursor: pointer;

}

.btn-div-flex button:hover {
  background-color: var(--bg-Light-Gray);
}

/*chat history Started*/
#searchHistory {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--bg-Dark-Gray);
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-White);
}

.history-item:hover {
  background: var(--bg-Full-Gray);
}

.history-item.active {
  background: var(--bg-Light-Purple);
}

/* profile div started */
.profile {
  background-color: var(--bg-Black);
  border-top: 1px solid white;
  padding: 5px;
  width: 90%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 10px;
  z-index: 1;
  cursor: pointer;
}

.profile:hover {
  background-color: var(--bg-Light-Gray);
}

.profile img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  user-select: none;
}

.username {
  user-select: none;
  font-size: 0.85rem;
  color: var(--text-White);
  line-height: 14px;
}

.free {
  user-select: none;
  font-size: calc(0.75);
  color: var(--text-White);
}

.upgrade {
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--bg-Dark-Gray);
  cursor: pointer;
  color: var(--text-White);
}

.upgrade:hover {
  background-color: var(--bg-Light-Gray);
}

/* sidebar ended */



/* main started */
#main {
  background-color: var(--bg-Dark-Gray);
  width: calc(100% - 250px);
  height: 100vh;
  padding: 10px 0px;
  position: relative;
}

/* main navbar */
.main-nav {
  position: sticky;
  top: 0px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  height: 45px;
  /* background-color: red; */
}

/* DropDown started from here  */
#Dropdown {
  position: relative;
}

.Dropdown-title {
  background-color: var(--bg-Dark-Gray);
  color: var(--text-White);
  margin-top: -1px;
  margin-left: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  font-size: 1.10rem;
  cursor: pointer;
  width: 110px;
  height: 36px;
  border-radius: 8px;
  user-select: none;
  border: none;
}

.Dropdown-title span {
  font-size: 12px;
  color: var(--text-Gray);
}

.Dropdown-title:hover {
  background-color: var(--bg-Full-Gray);
}

/* Dropdown list started  */
.list {
  display: none;
  padding: 5px 7px;
  border-radius: 15px;
  width: 300px;
  height: 120px;
  background-color: var(--bg-Light-Gray);
  position: absolute;
  z-index: 1001;
  top: 35.2px;
  left: 10px;
  box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.50);
}

.model {
  /* background-color: #373669; */
  height: 50%;
  border-radius: 10px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model:hover {
  background-color: var(--bg-Full-Gray);

}

.model img {
  width: 22px;
  user-select: none;
}

.model>div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.model>div>div>li{
  user-select: none;
}
.model>button {
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--bg-Dark-Gray);
  color: var(--text-White);
  cursor: pointer;
}

.model>button:hover {
  background-color: var(--bg-Full-Gray);
}

.model>span {
  font-size: 12px;
  color: var(--text-Gray);
}

.model-text {
  list-style: none;
  height: 100px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.model-text span {
  font-size: 0.7rem;
  color: var(--text-Gray);
}

/* Dropdown list ended */
/* Dropdown ended  */

/* Get Plus button Started From here  */
.getplus button {
  margin-left: 23px;
  height: 36px;
  width: 94px;
  padding: 5px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border: none;
  border-radius: 20px;
  color: var(--text-Pink);
  background-color: var(--bg-Dark-Purple);
  cursor: pointer;
}

.getplus button:hover {
  background-color: var(--bg-Light-Purple);
}

.user-div {

  position: relative;
}

/* Get Plus button ended */

/* User div started  */
.span-1 {
  right: 35px;
  position: absolute;
  margin: 0px 8px;

  width: 35px;
  height: 35px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.span-2 {
  right: -2px;
  position: absolute;
  margin: 0px 8px;

  width: 35px;
  height: 35px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spans:hover {
  background-color: var(--bg-Full-Gray);
  cursor: pointer;
}

.user-div img {
  width: 21px;
  color: var(--text-White);
}

/* user-div ended  */
/* main navbar ended */


/* main response area started  */
#response-area{

  /* background-color: red; */
  width: 100% ;
  height: 90%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
#chat{
/* background-color: red; */
width: 100%;
height: 85%;
display: flex;
flex-direction: column;
overflow-y: auto;  /* ← Yeh add kiya: scroll karne ke liye */
gap: 20px;

}

.user-message .message-content {
  background: #33353f;  /* User ke messages ka style */
  color: white;
  border-radius: 15px;
  padding: 3px 15px;
  width: fit-content;
  max-width: 60%;
  margin-left: auto;  /* Right align */
  margin-right: calc(100% - 83%);
}

.ai-message .message-content {
  background: #444654;  /* AI ke messages ka style */
  color: white;
  border-radius: 12px;
  padding: 10px 15px;
  width: fit-content;
  max-width: 65%;
  margin-right: auto;  /* Left align */
  margin-left: calc( 100% - 88%);
}

.ai-message.loading .message-content::after {
  content: "•••";
  animation: dots 1.4s infinite;  /* Loading animation */
}

@keyframes dots {
  0%, 20% { content: "•"; }
  40% { content: "••"; }
  60% { content: "•••"; }
  80%, 100% { content: ""; }
}

#temp-heading{
  margin: 0px auto;
  margin-top: 100px;
  

}

/* main response area ended  */

/* main input area started  */

#input-bar {
  background-color: var(--bg-Light-Gray);
  width: 65%;
  height: 58px;
  border-radius: 30px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 0px 4px var(--bg-Black);
  position: fixed;                    /* ← fixed rakho */
  bottom: 20px;                       /* ← 48% ki jagah 20px karo */
  left: 50%;
  transform: translateX(-50%);        /* ← center karo */
  z-index: 100;
}
.input-bar>div{
  display: flex;
  gap: 5px;
}
.input-bar>textarea{  /* ← Yeh add kiya: textarea ke liye style */
  margin-left: 10px;
  color: var(--text-White);
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  width: calc(100% - 140px);
  
  left: 40px;
  height: 25px;
  max-height: 50px;
  /* background: #000; */
  align-content: center;
  /* min-height: 10px; */
  /* max-height: 150px; */
  line-height: 1.4;
  overflow: hidden;  
  position: absolute;

}

.input-bar>textarea::placeholder{
  color: var(--text-Gray);
}
.bg-transperant-div{
  background-color: transparent;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 100%;
  cursor: pointer;
}
.bg-transperant-div:hover{
  background-color: var(--bg-Full-Gray);
}
.bg-white-div{
  background-color: white;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 100%;
  cursor: pointer;
}
.bg-white-div:hover{
  background-color: rgba(255, 255, 255, 0.6);
}


/* main input area ended  */
