body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    justify-content: center;
    align-items: center;
}
.nav-links {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.centered-message {
  text-align: center;
  font-size: 25px;
  color: #908a8a;
  font-weight: 600;
  padding: 0;
  margin: 0;
}
.centered-text {
  text-align: center;
}
.title {
    font-size: 60px;
    margin-bottom: 10px;
    color: #007bff;
    font-weight: bold;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.title-admin {
  font-size: 50px;
  margin-bottom: 0px;
  color: #007bff;
  font-weight: bold;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.chat-container {
    max-width: 800px;
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 50px;
    margin-left: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Ensure text wrapping */
    word-wrap: normal; /* Legacy support for breaking words */
    word-break: normal; /* Break anywhere if necessary */
    white-space: normal; /* Prevent nowrap */
}
.center-container {
  display: flex; /* Enables Flexbox */
  flex-direction: column; /* Stacks elements vertically */
  justify-content: center; /* Centers elements vertically */
  align-items: center; /* Centers elements horizontally */
  width: 100%; /* Ensures full width */
  text-align: center; /* Ensures text inside elements is also centered */
}
.center-button {
  display: flex; /* Enables Flexbox */
  justify-content: center; /* Centers elements vertically */
  align-items: center; /* Centers elements horizontally */
  width: 100%; /* Ensures full width */
  text-align: center; /* Ensures text inside elements is also centered */
}
.chat-history {
    /* max-height: 400px; */
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    /* Ensure text wrapping */
    word-wrap: break-word;
    /* word-wrap: normal;  Legacy support for breaking words */
    word-break: normal; /* Break anywhere if necessary */
    white-space: normal; /* Prevent nowrap */
}
.chat-message {
  margin-bottom: 15px;
}
.chat-message.user {
  color: #333;
}
.chat-message.bot {
  color: #007BFF;
  /* Ensure text wrapping */
  word-wrap: break-word;
  /* word-wrap: normal;  Legacy support for breaking words */
  word-break: normal; /* Break anywhere if necessary */
  white-space: normal; /* Prevent nowrap */
}
.chat-message code {
  background: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 16px;
  /* Ensure text wrapping */
  word-wrap: break-word;
  /* word-wrap: normal;  Legacy support for breaking words */
  word-break: normal; /* Break anywhere if necessary */
  white-space: normal; /* Prevent nowrap */
}

.chat-message-wrap {
  white-space: pre-wrap;
  word-wrap: break-word;
}


form {
  gap: 10px;
}
input[type="text"] {
  flex: 1;
  width: 95%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
button[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button[type="submit"]:hover {
    background-color: #0056b3;
}
button#clearChat {
  padding: 10px 20px;
  font-size: 16px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button#clearChat:hover {
  background-color: darkred;
}
.clearButton {
  padding: 10px 20px;
  font-size: 16px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.clearButton:hover {
  background-color: darkred;
  color: white;
}
/* Make .btn.clearButton a proper Bootstrap 5 "variant" using CSS variables */
.btn.clearButton {
  --bs-btn-color: #fff;
  --bs-btn-bg: red;
  --bs-btn-border-color: red;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: darkred;
  --bs-btn-hover-border-color: darkred;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: darkred;
  --bs-btn-active-border-color: darkred;

  --bs-btn-focus-shadow-rgb: 0,0,0; /* removes blue halo when combined with box-shadow:none */

  background-color: var(--bs-btn-bg);
  color: var(--bs-btn-color);
  border-color: var(--bs-btn-border-color);
}

/* Keep the look on focus/active (covers Bootstrap’s states & btn-check pattern) */
.btn.clearButton:focus,
.btn.clearButton:active,
.btn.clearButton:focus:active,
.btn-check:focus + .btn.clearButton,
.btn-check:active + .btn.clearButton,
.btn-check:checked + .btn.clearButton,
.btn.clearButton.show,
.show > .btn.clearButton {
  background-color: var(--bs-btn-active-bg) !important;
  color: var(--bs-btn-active-color, #fff) !important;
  border-color: var(--bs-btn-active-border-color) !important;
  box-shadow: none !important; /* optional */
  outline: none !important;     /* optional */
}

.link-button {
  display: inline-block; /* Makes the link behave like a button */
  padding: 7px 20px; /* Adjusts button size */
  background-color: #0056b3; /* Button color (blue) */
  color: white; /* Text color */
  text-decoration: none; /* Removes underline */
  font-size: 16px; /* Adjusts text size */
  border-radius: 5px; /* Rounded corners */
  border: none; /* No border */
  text-align: center; /* Centers text */
  transition: background-color 0.3s ease; /* Smooth hover effect */
  margin: 10px 0; /* Adds vertical spacing above and below */
}

.link-button:hover {
  background-color: #6facee; /* Darker shade on hover */
}

.select-question {
  padding: 8px 12px;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none; 
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 30px;
  width: 300px;
}
.select-small {
  padding: 2px 8px;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none; 
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 30px;
  width: 200px;

}
.input-small {
  font-size: 18px;
  width: 150px;
  max-width: 300px;
  padding: 2px 8px;     /* less vertical padding */
  line-height: 1.1;     /* tighter line box */
  height: 30px;         /* optional hard cap */
  box-sizing: border-box;
}
.inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;   /* keep on one line */
}

.button-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.fixed-input {
  width: 100px; /* fixed width */
  min-width: 100px; /* ensures it doesn’t shrink */
  box-sizing: border-box;
  margin-bottom: 10px;
}
.input-container {
  display: flex;
  flex-wrap: wrap;
}

/* ============================= mystyle.css ============================= */

.wrapper {
  /* border-top: 03px solid #0000FF; */
  border-top: 05px solid rgb(13, 110, 253);
}

a { 
  text-decoration: none;
}
/*
.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 48px; // Set this to the same value as the height of the circle 
}
*/
.badge-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 48px; /* Set this to the same value as the height of the circle */
}

.badge-inline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 48px; /* Set this to the same value as the height of the circle */
}

.nav-tabs .nav-link.active {
  background-color: rgb(13, 110, 253);
  color: #fff;
  border: 1px solid rgb(17, 17, 163);

}
.nav-tabs .nav-link {
  background-color: #e7edf3;
  color: #4e4ec2;
  border: 1px solid rgb(65, 65, 212);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;

}

.success-alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #73ed7d;
  color: #101443;
  border: 1px solid #54ea79;
  border-radius: 8px;
  z-index: 9999;
  display: none;
}

.failed-alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #f42929;
  color: #ffffff;
  border: 1px solid #ea5454;
  border-radius: 8px;
  z-index: 9999;
  display: none;
}

/* CSS */
.otp-message {
  max-width: 400px;
  margin: 1.5em auto;
  padding: 1em 1.25em;
  background-color: #eadd76;
  border: 1px solid #d1e3f0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  text-align: center;
}

.otp-message p {
  margin: 0;
  line-height: 1.5;
  font-size: 1rem;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.small-input {
  width: 150px;
}
.search-results {
  margin-top: 20px;
}

.suggestion {
  padding: 4px 8px;
  cursor: pointer;
}
.suggestion:hover {
  background-color: #e7e71a;
}
#suggestions:empty,
#secondSuggestions:empty {
  display: none;
}

.suggestion-box {
  border: 1px solid #ccc;
  max-height: 252px;
  overflow-y: auto;
  width: 250px;
  position: absolute;
  background: white;
  z-index: 1000;
}
.suggestion.highlight { background-color: #e7e71a; }

#nameInput {
  width: 200px; 
}
.uniform-width {
  font-size: 18px;
  width: 250px;
  max-width: 90%;
}
#nameInput,
#secondNameInput,
.styled-select {
  width: 250px;
  max-width: 90%;
}

/* Smaller, clean rounded select */
.small-rounded-select {
  width: 100px;
  padding: 6px 8px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Smaller, clean rounded input */
.small-rounded-input {
  width: 200px;
  padding: 6px 10px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-sizing: border-box;
}

.small-rounded-select:focus-visible,
.small-rounded-input:focus-visible {
  outline: none;
  font-size: 18px;
  border-color: #888;
  box-shadow: 0 0 4px rgba(100, 100, 100, 0.3);
}
/* pill button CSS */
.nav-links a {
  display: inline-block;
  padding: 6px 18px;
  margin: 2px 4px;              /* add space around each pill */
  background: #0965d5;           /* light blue */
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;          /* pill shape */
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-links a:hover {
  background: #0c2c94;           /* darker on hover */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);   /* subtle lift */
}

.nav-links a:active {
  background: #1a8cff;           /* pressed state */
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.nav-links a:focus {
  outline: none;
  box-shadow: none;
}
.nav-links a {
  -webkit-tap-highlight-color: transparent;
}

.test-color {
  color: #a5c2f0; color: #6fa1f0;
  color: #f5d4a3; color: #eeb866;
  color: #ade9c1; color: #63cf87;
  color: #d5b8f5; color: #bc8af1;
  color: #f1f0c3; color: #dfdc54;
  color: #eab2ae; color: #f9968f;
}