* {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  margin:0;
  text-align: center;
}

/* body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: white;
  text-align: center;
} */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eeecec;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--accent-color);
}

.both{
  display: flex;
  /* align-items:center; */
  justify-content: space-between;
  gap: 20px;
}



/* Header */
.header {
  padding: 10px;
  border-radius: 20px;
}

.header p{
  color: var(--subheading-color);
}


.search-section {
  margin: 20px;
}
#searchBox {
  width: 60%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  color: var(--text-color);
  transition: border 0.3s;
}
#searchBox:focus {
  border: 1px solid var(--accent-color);
  outline: none;
}




/* Buttons */
.button-container {
  margin: 20px;
}
button {
  color: #000000;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.5s;
  transition: all 0.3s;
  border-radius: 5px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  background-size: 200% auto;
}

button {
  background-image: linear-gradient(to right, #0000001b 0%, #c4c4c4 51%, #000000 100%);
  box-shadow: 0 0 20px #eee;
}

button:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 70%;
  border-radius: 10px;
}
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: var(--subheading-color);
}

/* Info Sections */
.info-section {
  padding: 40px;
  background: var(--secondary-color);
  margin-top: 20px;
  overflow: hidden;
}



/* Tracker */
.tracker-div {
  display: flex;
  
  justify-content: center;
  align-items: center;
}
.tracker {
  margin: 0px 15px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:2px;
  /* background-color: #24739b;
   */
   background: #00c1db;
background: linear-gradient(90deg, rgba(0, 193, 219, 1) 0%, rgba(50, 207, 115, 1) 85%);
  border-radius: 20px;
  width: fit-content;

}
.tracker a{
  border: #b90000;

  text-decoration: none;
  width: fit-content;
  border-radius: 10px;
  background-color: #e3e3ee;
  height: 50px;
  padding : 1px 7px;
  display: flex;
  align-items: center;
  gap:5px
}
.tracker a p{
  font-size: 14px;
  font-weight: bold;
  color: black;
  /* color: var(--text-color); */
}
.tracker p{
  padding: 0px 5px;
  font-size: 12px;
  color: rgb(255, 255, 255);
  font-weight: bold;

}
.tracker img {
  height: 40px;
  width: 40px;
  border-radius: 10%;
  /* margin-left: 10px10 */
}

.download-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: nowrap;
  width: fit-content;      /* ✅ makes container as wide as buttons */
  margin-inline: auto;     /* ✅ centers the box horizontally */
}

.download-btns button {
  padding: 6px 12px;
  font-size: 14px;
}


/* Chatbot */
#chatbox {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  width: 60%;
  margin: auto;
  border-radius: 10px;
}


:root {
  --text-color: #111;
  --subheading-color: #555;
  --placeholder-color: #888;
  --primary-color: #ffffff;
  --secondary-color: #f5f5f7;
  --secondary-hover-color: #eaeaea;
  --accent-color: #0071e3; /* Apple blue */
}


body {
  color: var(--text-color);
  background-color: var(--primary-color);
}


/* .container {
 padding: 32px 0 60px;
  overflow: hidden;
  max-height: calc(100vh - 127px);
  scrollbar-color: (var(--scrollbar-color) transparent);
} */

.container {
  padding: 32px 0 60px;
  overflow-y: auto;   /* instead of hidden */
  max-height: none;   /* remove the viewport clipping */
}




.container :where(.app-header, .suggestions, .prompt-wrapper, .disclaimer-text, .message) {
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  max-width: 980px;
}

.container .app-header {
  margin-top: 4vh;
}

.app-header .heading {
  font-size: 3rem;
  width: fit-content;
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header .sub-heading {
  font-size: 2.6rem;
  margin-top: -5px;
  color: var(--subheading-color);
}

body.chats-active .container :where(.app-header, .suggestions) {
  display: none;
}

/* suggestions list stylings */
.container .suggestions {
  /* display: none; */
  display: flex;
  gap: 15px;
  margin-top: 9.5vh;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.suggestions .suggestions-list {
  min-width: 200px;
  max-width: 250px;
  padding: 18px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: pointer;
  justify-content: space-between;
  border-radius: 12px;
  background-color: #f9f9f9;
  transition: 0.3s ease;
}

.suggestions .suggestions-list:hover {
  background: #f0f0f0;
}

.suggestions .suggestions-list .text {
  font-size: 1.1rem;
}

.suggestions .suggestions-list span {
  height: 45px;
  width: 45px;
  display: flex;
  border-radius: 50%;
  align-self: flex-end;
  justify-content: center;
  align-items: center;
  color: rgb(84, 148, 237);
  margin-top: 35px;
  background: var(--primary-color);
}

.suggestions .suggestions-list:nth-child(2) span {
  color: #28a745;
}

.suggestions .suggestions-list:nth-child(3) span {
  color: #ffc107;
}

.material-symbols-outlined svg {
  fill: rgb(169, 61, 149);
}

.material-symbols-light-bulb svg {
  fill: rgb(243, 39, 52);
}

/* chats container stylings */
.container .chats-container {
  display: flex;
  gap: 20px;
  flex-direction: column;
}



.chats-container .message {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chats-container .bot-message .avatar {
  height: 43px;
  width: 43px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-right: -7px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 1px solid var(--secondary-hover-color);
}

.chats-container .bot-message.loading .avatar {
  animation: rotate 3s linear infinite;
}

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

.chats-container .message .message-text {
  padding: 3px 16px;
  word-wrap: break-word;
  white-space: pre-wrap;
  margin-bottom: 15px;
  line-height: 1.8;
}


.message-text {
background: #f5f5f7;
}

.user-message .message-text {
  background: var(--accent-color);
  color: white;
}

.chats-container .bot-message {
  margin: 9px auto;
}

.chats-container .user-message {
  flex-direction: column;
  align-items: flex-end;
}

.chats-container .user-message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  border-radius: 13px 13px 3px 13px;
}

.chats-container .user-message .img-attachment {
  width: 50%;
  margin-top: -7px;
  border-radius: 13px 3px 13px 13px;
}

.chats-container .user-message .file-attachment {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border-radius: 13px 3px 13px 13px;
}

/* prompt-container stylings */
.prompt-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
 background-color: var(--primary-color);
 border-top: 1px solid #ddd;
}

.prompt-input{
  color: #000000;
}

.prompt-container :where(.prompt-wrapper, .prompt-form, .prompt-actions) {
  display: flex;
  gap: 12px;
  height: 56px;
  align-items: center;
}

.prompt-wrapper .prompt-form {
  width: 100%;
  height: 100%;
  border-radius: 130px;
  background: #f5f5f7;
  /* border-color: #c81818; */
  border: 1px solid pink;
  
}

.prompt-form .prompt-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 1px 20px;
  background: transparent;
  border-radius: 130px;
  font-size: 1rem;
  padding-left: 24px;
  color: var(--text-color);
}

.prompt-form .prompt-input::placeholder {
  /* color: var(--placeholder-color); */
  color: #000000;
}

.prompt-wrapper button {
  width: 56px;
  height: 100%;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: rgb(22, 4, 4);
  box-shadow: 0 0 20px #eee;
  background-color: var(--secondary-color);
}

.prompt-wrapper :is(button:hover, .file-icon, #cancel-file-btn:hover) {
  background: var(--secondary-hover-color);
}

.prompt-form .prompt-actions {
  gap: 5px;
  margin-right: 7px;
}

.prompt-wrapper .prompt-form :where(.file-upload-wrapper, button, img) {
  position: relative;
  height: 45px;
  width: 45px;
}

.prompt-form #submit-prompt-btn {
  background: linear-gradient(to right, #1d7efd, #8f6fff);
  display: none;
  box-shadow: 0 4px 9px rgba(29, 126, 253, 0.39);
}

.prompt-form .prompt-input:valid ~ .prompt-actions #submit-prompt-btn {
  display: block;
}

.prompt-form .file-upload-wrapper :where(button, img) {
  cursor: pointer;
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: none;
}

/* Show file upload icon by default */
.prompt-form .file-upload-wrapper #add-file-btn,
.prompt-form .file-upload-wrapper.active.img-attached img,
.prompt-form .file-upload-wrapper.active.file-attached .file-icon,
.prompt-form .file-upload-wrapper.active:hover #cancel-file-btn {
  display: block;
}

/* Show cancel button when a file is selected */
.prompt-form .file-upload-wrapper.active #add-file-btn {
  display: none;
  background: transparent;
}

.material-symbols-cancel svg {
  fill: #d62939;
}


.prompt-form .file-icon svg {
  fill: #040910;
}

.material-symbols-rounded svg{
  fill: rgba(22, 139, 102, 0.845);
}

.material-symbols-upward {
  fill: white;
}

.prompt-form #stop-response-btn,
body.bot-responding .prompt-form .file-upload-wrapper {
  display: none;
  background: #d62939;
}

body.bot-responding .prompt-form #stop-response-btn {
  display: block;
}

.prompt-container .disclaimer-text {
  text-align: center;
  font-size: 0.9rem;
  padding: 16px 20px 0;
  color: var(--placeholder-color);
}

 @media (max-width: 768px) {
  .app-header .heading {
    font-size: 2.4rem;
  }

  .app-header .sub-heading {
    font-size: 1.8rem;
    margin-top: -3px;
  }

  .suggestions {
    margin-top: 7vh;
  }

  .suggestions .suggestions-list {
    min-width: 160px;
    max-width: 200px;
    padding: 15px;
  }

  .suggestions .suggestions-list .text {
    font-size: 1rem;
  }

  .chats-container .user-message .message-text {
    max-width: 85%;
  }

  .prompt-container {
    padding: 12px 0;
  }

  .prompt-container :where(.prompt-wrapper, .prompt-form, .prompt-actions) {
    height: 48px;
    gap: 8px;
  }

  .prompt-wrapper .prompt-form {
    border-radius: 100px;
  }

  .prompt-form .prompt-input {
    font-size: 0.9rem;
    padding-left: 20px;
  }

  .prompt-wrapper button {
    width: 48px;
    height: 100%;
    font-size: 1.2rem;
  }

  .prompt-form #submit-prompt-btn {
    width: 48px;
    box-shadow: 0 4px 9px rgba(29, 126, 253, 0.39);
  }

  .prompt-form .file-upload-wrapper :where(button, img) {
    height: 38px;
    width: 38px;
  }

  .prompt-container .disclaimer-text {
    font-size: 0.8rem;
    padding: 12px 20px 0;
  }
} 

/* Prevent bottom content (like Contact) from being hidden behind chatbox */
body {
  padding-bottom: 120px; /* equal to or larger than chatbox height */
}


