/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Secular+One&display=swap');
* {
  margin: 0;
  padding: 1px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Dark mode colors */
  --text-color: #E3E3E3;
  --subheading-color: #828282;
  --placeholder-color: #A6A6A6;
  --primary-color: #000000;
  --secondary-color: #383838;
  --secondary-hover-color: #444;
  --aj-color:#383838;

  --code-color: black;
}

.light_mode {
  /* Light mode colors */
  --text-color: #222;
  --subheading-color: #A0A0A0;
  --placeholder-color: #6C6C6C;
  background-image: url(images/aj.jpg);
  --primary-color: #ffffff00;
  --secondary-color: #E9EEF6;
  --secondary-hover-color: #DBE1EA;
  --code-color: rgb(255, 255, 255);
  --aj-color:#e9eef6;
}

body {
  background: var(--primary-color);
  height: auto;
  
  
}
.logo{
  background-color: #444;
  height: 45px;
  
 
}
.logoimg{
  width: 30px;
  border-radius: 100%;
  margin-top: 5px
}

.header, .chat-list .message, .typing-form {
  margin: 0 auto;
  max-width: 1040px;
}

.header {
  margin-top: 8vh;
  padding: 0rem;
  overflow-x: hidden;
}

body.hide-header .header {
  margin: 0;
  display: none;
}

.header :where(.title, .subtitle) {
  color: var(--text-color);
  font-weight: 500;
  line-height: 4rem;
}

.header .title {
  width: fit-content;
  font-size: 3rem;
  background-clip: text;
  background: linear-gradient(to right, #4285f4, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header .subtitle {
  font-size: 2.6rem;
  color: var(--subheading-color);
}

.suggestion-list {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-top: 9.5vh;
  overflow: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.suggestion-list .suggestion {
  cursor: pointer;
  padding: 1.25rem;
  width: 222px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 0.75rem;
  justify-content: space-between;
  background: var(--secondary-color);
  transition: 0.2s ease;
}

.suggestion-list .suggestion:hover {
  background: var(--secondary-hover-color);
}

.suggestion-list .suggestion :where(.text, .icon) {
  font-weight: 400;
  color: var(--text-color);
  resize: auto;
}

.suggestion-list .suggestion .icon {
  width: 42px;
  height: 42px;
  display: flex;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  align-self: flex-end;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  color: var(--text-color);
  background: var(--primary-color);
}

.chat-list {
  padding: 2rem 1rem 12rem;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-color: #999 transparent;
}

.chat-list .message.incoming {
  margin-top: 1.5rem;
}

.chat-list .message .message-content {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}

.chat-list .message .text {
  color: var(--text-color);
  white-space: pre-wrap;
}

.chat-list .message.error .text {
  color: #e55865;
}

.chat-list .message.loading .text {
  display: none;
}

.chat-list .message .avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  align-self: flex-start;
}

.chat-list .message.loading .avatar {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.chat-list .message .icon {
  color: var(--text-color);
  cursor: pointer;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  font-size: 1.25rem;
  margin-left: 3.5rem;
  visibility: hidden;
}

.chat-list .message .icon.hide {
  visibility: hidden;
}

.chat-list .message:not(.loading, .error):hover .icon:not(.hide){
  visibility: visible;
}

.chat-list .message .icon:hover {
  background: var(--secondary-hover-color);
}

.chat-list .message .loading-indicator {
  display: none;
  gap: 0.8rem;
  width: 100%;
  flex-direction: column;
}

.chat-list .message.loading .loading-indicator {
  display: flex;
}

.chat-list .message .loading-indicator .loading-bar {
  height: 11px;
  width: 100%;
  border-radius: 0.135rem;
  background-position: -800px 0;
  background: linear-gradient(to right, #4285f4, var(--primary-color), #4285f4);
  animation: loading 2s linear infinite;
}

.chat-list .message .loading-indicator .loading-bar:last-child {
  width: 70%;
}

@keyframes loading {
  0% {
    background-position: -800px 0;
  }

  100% {
    background-position: 800px 0;
  }
}

.typing-area {
  position: fixed;
  width: 100%;
  left: 5%;
  bottom: -10px;
  padding: 1rem;
  
  
}

.typing-area :where(.typing-form, .action-buttons) {
  display: flex;
  gap: 0.75rem;
}

.typing-form .input-wrapper {
  width: 100%;
  height: 56px;
  display: flex;
  position: relative;
}

.typing-form .typing-input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  resize: auto;
  font-size: 1rem;
  left: 10%;
  color: var(--text-color);
  padding: 1.1rem 1rem 1.1rem 4.5rem;
  border-radius: 100px;
  background: var(--aj-color);
}

.typing-form .typing-input:focus {
  background: var(--secondary-hover-color);
}

.typing-form .typing-input::placeholder {
  color: var(--placeholder-color);
}

.typing-area .icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  font-size: 1.4rem;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  transition: 0.2s ease;
  
}

.typing-area .icon:hover {
  background: var(--secondary-hover-color);
}


.typing-form #send-message-button {
  position: absolute;
  right: 0;
  outline: none;
  border: none;
  transform: scale(0);
  background: transparent;
  transition: transform 0.2s ease;
}

.typing-form .typing-input:valid ~ #send-message-button {
  transform: scale(1);
}

.typing-area .disclaimer-text {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: var(--placeholder-color);
}

/* Responsive media query code for small screen */
@media (max-width: 768px) {
  .header :is(.title, .subtitle) {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .header .subtitle {
    font-size: 1.7rem;
  }

  .typing-area :where(.typing-form, .action-buttons) {
    gap: 0.4rem;
  }

  .typing-form .input-wrapper {
    height: 50px;
  }

  .typing-form .typing-input {
    padding: 1.1rem  1.1rem 1.2rem;
  }

  .typing-area .icon {
    height: 50px;
    width: 50px;
  }

  .typing-area .disclaimer-text {
    font-size: 0.75rem;
    margin-top: 0rem;
  }
}
.sign-in-button {
  background-color: rgb(0, 0, 0); 
  color: white; 
  border: none; 
  height: 54px;
  border-radius: 100px;
  padding: 2px 59px;
  margin-top: 67vh;

  cursor: pointer; 
  display: flex; 
  align-items: center; 
  font-size: 16px; 
}

.sign-in-button span {
  margin: right 0;; 
}

.sign-in-button:hover {
  background-color: rgb(0, 0, 0);
  box-shadow: 2px 0 5px color(srgb 0.86 0.48 0.48 / 0.5); /* Darker background on hover */
}
.sign-item span {
  margin-right: 10px;
   /* Space between icon and text */
}

.sign-item :hover {
  background: rgba(0, 0, 0, 0);
  box-shadow: px 0 px color(srgb 0.86 0.48 0.48 / 0.5);
  border-radius: 100px;
}
.sign-item {
  padding: 10px;
  color: #b7b7b7;
  text-decoration: none;
  display: flex;
  align-items: center;
  border-radius: 100px;
  margin-top: 67vh;
}
.sign-item:hover {
  background: rgba(0, 0, 0, 0);
  box-shadow: 2px 0 4px color(srgb 0.86 0.48 0.48 / 0.5);
  border-radius: 100px;
}
.profile-icon {
  position: absolute;
  top: 5px;
  right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%; 
  overflow: hidden; 
  cursor: pointer;
  z-index: 1000;
  
   
}

.profile-icon img {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
}
#settings-submenu {
  padding-left: 20px;
  border-radius: 100px;
}

.profile-icon {
  cursor: pointer;
}

.submenu {
  display: none; 
  position: absolute;
  top: 50px; 
  right: 10px; 
  background: #fff; 
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; 
}

.submenu-item {
  display: block;
  padding: 10px 20px;
  color: #b7b7b7; 
  text-decoration: none;
}

.submenu-item:hover {
  background: #f0f0f0; 
}
.neon-button {
  background-color: transparent; 
  border: 0px solid #000000; 
  color: #ffffff; 
  padding: 10px 20px; 
  font-size: 16px; 
  border-radius: 50px; 
  margin: 25 px;
  cursor: pointer; 
  transition: 0.3s; 
}

.neon-button:hover {
  background-color: #ffffff; 
  color: black; 
  box-shadow: 0 0 20px #ffffff;
}
.profile-card {
  display: none; /* Initially hidden */
  position: absolute;
  top: 50px; 
  right: 10px; /* Adjust as needed */
  width: 250px;
  height: 350px; 
  background:rgba(0, 0, 0, 0.899);
  border: 1px solid #ccc; /* Light gray border */
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; 
  padding: 10px; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.profile-detail-image {
  width: 70px; /* Set width as per your requirement */
  height: 70px; /* Maintain aspect ratio */
  margin: 35px auto; /* Center align the image */
  display: block;
  border-radius: 100%;
}
.close-button1 {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.button-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px; 
}
.username {
  margin: 5px 0; 
  text-align: center; 
  color:#ccc
}
.theme-toggle {
  position: absolute;
  top: 6px;
  right: 55px; /* profile icon se thoda distance */
  z-index: 1000;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  font-size: 1.4rem;
  color: var(--text-color);
  align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    transition: 0.2s ease;
    color: #000000;
    border-radius: 50%;
}

.theme-toggle button:hover {
    color: #4285f4; /* Change color on hover */
}


.theme-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Light mode mei icon ka color */
.light_mode .theme-button {
  background: var(--primary-color);
}
.material-symbols-rounded1 {
    font-family: 'Material Symbols Rounded';
    
    font-size: 14px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    width: 30px;
    height: 30px;
    border: 2px;
    border-radius: 50%;
}
.hamburger {
  cursor: pointer;
  padding: 11px;
  color: rgb(155 151 151);
}
.hamburger, .close-button {
  cursor: pointer;
  padding: 0px; /* Same padding */
  color: rgb(183, 183, 183); /* Same color */
  font-size: 40px;
  transition: 0.5s; /* Adjust font size */
}

.menu {
  
  opacity: 0; /* Start with invisible */
  visibility: hidden;
  background: rgb(15, 16, 15);
  position: absolute;
  top: 0;
  left: -200px;
  width: 200px;
  height: 95vh;
  box-shadow: 5px 0 5px color(srgb 0.86 0.48 0.48 / 0.5);
  z-index: 100;
  transition: left 0.5s ease;
  border-top-right-radius: 23px;
  border-bottom-right-radius: 23px;
  margin-left: -5px;
}

.menu.active {
  visibility: visible; /* Make it visible when active */
  opacity: 1;
  left: 2px;
   
  
}

.menu-item {
  padding: 7px;
  color:#b7b7b7;
  text-decoration: none;
  display: flex;
  align-items: center;
  
  border-radius: 100px
}


.menu-item span {
  margin-right: 10px;
   /* Space between icon and text */
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0);
  box-shadow: 2px 0 5px color(srgb 0.86 0.48 0.48 / 0.5);
  border-radius: 100px;
}
.close-button {
  visibility: visible; /* Make it visible when active */
  opacity: 1; /* Start with the close button invisible */
  transition: opacity 5s ease; /* Transition for fading effect */
}

.menu.active .close-button {
  visibility: visible; /* Make it visible when active */
  opacity: 1; /* Fade in the close button when the menu is active */
}
/* Common styles for all three icons */
.attach-file-icon,
#ai-icon,
#ai-icon .material-symbols-rounded,
#micButton {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text-color); /* Use your text color variable */
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    padding: 8px;
    border: none;
}
#ai-icon, #ai-icon .material-symbols-rounded {
  background: transparent !important;
  color: var(--text-color);
  
}
/* Hover effects for all icons */
.attach-file-icon:hover,
#ai-icon:hover,
#ai-icon .material-symbols-rounded:hover,
#micButton:hover {
    background: transparent !important;
    color: #4285f4; /* Hover color - you can change this */
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Active/Click effect */
.attach-file-icon:active,
#ai-icon:active,
#ai-icon .material-symbols-rounded:active,
#micButton:active {
    transform: scale(0.95);
}
/* Specific colors for each icon if needed */
#ai-icon {
    color: var(--text-color); /* Google Blue */
}
.attach-file-icon {
    color:var(--text-color); /* Google Green */
}
#micButton {
    color: var(--text-color); /* Google Red */
}
/* If you want different hover colors for each */
#ai-icon:hover {
    color: var(--text-color); /* Darker Blue */
}
.attach-file-icon:hover {
    color:var(--text-color); /* Darker Green */
}
#micButton:hover {
    color:var(--text-color); /* Darker Red */
}.code-container {
  background-color: var(--text-color); /* Light background */
  border: 1px solid #ccc; /* Border */
  padding: 10px; /* Padding */
  border-radius: 20px; /* Rounded corners */
  overflow: auto; /* Scroll if content is too long */
  margin-top: 10px;
  color: var(--code-color); /* Space above the code container */
}
.code-container.show {
  opacity: 1; /* Show when added */
}
.explanation-container {
  background-color: #f9f9f9; /* Light background */
  border: 1px solid #ccc; /* Border */
  padding: 10px; /* Padding */
  margin-top: 10px; /* Space above */
  border-radius: 5px; /* Rounded corners */
  font-size: 14px; /* Font size */
  color: #333; /* Text color */
}
.code-label {
  font-weight: bold; /* Bold text for emphasis */
  margin-bottom: 5px; /* Space below the label */
  color: var(--code-color); /* Dark color for the label */
}
.c{
  color: var(--code-color);
  cursor: pointer;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: grid;
  align-items: center;
  justify-content: center;
  background-color: #727272;
  font-size: 1.25rem;
  margin-left: 4.5rem;
  top: 10px;
  align-content: center;
}
.c:hover{
  color:var(--text-color);
}