/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
figure,
blockquote,
dl,
dd {
  margin: 0;
}


/* Set core body defaults */
body {
  min-height: 100svh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
  color: #2c2a29; /* New text color */
  background-color: #f4f4f4; /* Secondary color 2 as background */
}


/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

.hide {
  display: none;
}

.logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  transition: background-color 0.2s ease;
}

.logout-button:hover {
  background-color: #c82333;
}

/* Navigation Bar */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 28px;
  width: auto;
}

.navbar-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c2a29;
}

.navbar-logout-btn {
  background-color: transparent;
  color: #fdfcfc;
  border: 1px solid rgba(253, 252, 252, 0.7);
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.navbar-logout-btn:hover {
  background-color: rgba(253, 252, 252, 0.15);
  color: #fdfcfc;
  border-color: #fdfcfc;
}

/* Minimal variant: transparent over hero image */
.navbar--minimal {
  background-color: transparent;
  border-bottom: none;
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Hide navbar on chat page */
.page-chat .navbar {
  display: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100svh;
  padding: 32px;
/*  background-color: #ffffff;*/
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
  gap: 16px;
}


.chat__container {
  width: 100%;
  /* height: 80vh; */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* padding-right: 10px; */
  overflow-y: auto;

  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.chat__container::-webkit-scrollbar {
  display: none;
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  margin-bottom: 32px;
}

.chat__title-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 32px;
  gap: 16px;
  border-bottom: 2px solid #ceb888; /* Secondary color 1 */
}

.chat-start__logo {
  width: 80px;
}

.chat__logo {
  width: 80px;
}

.chat__title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #2c2a29; /* Text color */
  text-shadow: 1px 1px 2px rgba(244, 244, 244, 0.5); /* Secondary color 2 for shadow */

  @media screen and (max-width: 500px) {
    font-size: 32px;
  }

  @media screen and (max-width: 400px) {
    font-size: 24px;
  }
}

.chat__title-badge {
  background-color: #ceb888; /* Secondary color 1 */
  border: 1px solid #ceb888;
  border-radius: var(--radius-full, 1000px);
  padding-inline: 12px;
  padding-block: 4px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
  color: #2c2a29;

  @media screen and (max-width: 500px) {
    font-size: 12px;
  }
}

.chat__title-active {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 32px;
}

.chat__close-btn {
  background-color: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.chat__close-btn:hover {
  background-color: #f0f0f0; /* Slightly darker background on hover */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow on hover */
  transform: scale(1.05); /* Slight zoom effect */
}


.fade-out-transition {
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.fade-out-transition.fade-out {
  opacity: 0;
}

.fade-out {
  animation: fadeOut 0.5s;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.chat__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #2c2a29; /* Text color */
  max-width: 600px;
}

.chat__user-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: 16px;
  flex-shrink: 0;
  width: 100%;
}

.chat__input-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.chat__user-input {
  display: flex;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #101828;
  width: 100%;
  resize: none;
  outline: none;
}

.chat__input-btn {
  background-color: #7c3546; /* Primary color */
  color: #fdfcfc; /* Secondary text color */
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  border: 1px solid #7c3546;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media screen and (max-width: 500px) {
  .chat__input-btn {
    min-width: fit-content;
    height: 100%;
  }
}

.chat__input-btn:hover {
  background-color: #6a2d3b; /* Darker primary variant */
}

.chat__input-btn:active {
  background-color: #0033cc;
}

.chat__questions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 450px;
}

.chat__questions-btn {
  background-color: #fafafa;
  color: #7c3546;
  font-size: 14px;
  border: 1px solid #7c3546;
  padding: 4px 12px;
  width: fit-content;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
.chat__questions-btn:hover {
  background-color: #7c3546;
  color: #fdfcfc;
}


.chat__user-message,
.chat__bot-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #7c3546; /* Primary color */
  max-width: 100%;
  background-color: #f2ede2;
}

.chat__user-message {
  align-self: flex-end;
  background-color: #ceb888; /* Secondary color 1 */
  border: 1px solid #ceb888;
}

.chat__bot-text {
  font-family: 'Inter', sans-serif;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.chat__bot-func {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.chat__bot-func-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Default styles for the buttons */
.chat__bot-func-buttons button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for all buttons */
.chat__bot-func-buttons button:hover {
  transform: scale(1.1); /* Slight zoom effect */
}

.chat__bot-func-buttons button:active {
  transform: scale(1); /* Return to normal size */
}

.chat__bot-logo {
  display: flex;
  max-width: 100px;
  max-height: 20px;
}

.chat__bot-func-buttons * {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

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

.chat__bot-reply {
  position: relative;
  min-height: 24px;
}

.chat__bot-reply svg {
  position: absolute;
  left: 0;
  top: 0;
  /* transform: translate(-50%, -50%); */
  transition: all opacity 0.3s ease;
  animation: spin 2s linear infinite;
  visibility: hidden;
}

.chat-start {
  background-image: url('/images/college-campus.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
  height: 100vh;
  width: 100vw;
  min-height: -webkit-fill-available; /* For mobile browsers */
  display: flex;
  overflow: auto;
}

.chat-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(124, 53, 70, 0.5); /* Primary color, adjust opacity as needed */
  z-index: 0;
}

.chat-start__container {
  position: relative;
  z-index: 1;
  background: #f4f4f4; /* Secondary color 2, flat */
  border: 2px solid #ceb888; /* Secondary color 1 */
  box-shadow: none; /* Remove shadow for flat design */
  height: 100%;
  min-height: 100vh;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.chat-start__title h2 {
  color: #2c2a29; /* Text color */
  font-size: 2.5rem;
  text-shadow: none; /* Remove shadow for flat design */
}

.chat-start__title p {
  color: #2c2a29;
  font-size: 1.1rem;
  max-width: 600px;
}

.chat__wrapper {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.chat__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.chat__form-group {
  max-width: 300px;
  width: 100%;
}

.chat-start__input {
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  max-width: 300px;
  width: 100%;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Hover State */
.chat-start__input:hover {
  border-color: #2c2a29;
  box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1); /* Slightly larger shadow */
}

.chat-start__input-button,
.chat__input-btn {
  background-color: #7c3546; /* Primary color */
  color: #fdfcfc; /* Secondary text color */
  border: 1px solid #7c3546;
  box-shadow: none;
  transition: background 0.2s;
}

.chat-start__input-button:hover,
.chat__input-btn:hover {
  background-color: #ceb888; /* Secondary color 1 */
  color: #2c2a29;
  border-color: #ceb888;
}

/* Active/Focus State */
.chat-start__input:focus, .chat-start__input:active {
  border-color: #2c2a29; /* A more intense blue for focus */
  box-shadow: 0px 4px 6px rgba(16, 24, 40, 0.2); /* More shadow for active state */
}


.chat-start__input::placeholder {
  color: #a09f9f;
}

.invalid-input {
  min-height: 48px;
  border: 1px solid rgb(247, 4, 4);
}

.error-message {
  color: rgb(247, 4, 4);
  margin-top: 5px;
  font-size: 0.8em;
  font-size: 14px;
}

.chat__form button {
  background-color: #ceb888;
  color: #2c2a29;
  cursor: pointer;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  max-width: 300px;
  width: 100%;
}

.chat__modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 100;
  display: none;
}

.chat__modal-container.show {
  display: flex;
  opacity: 1;
  transition: opacity 0.5s linear;
}


.chat__modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.chat__modal-exit {
  position: fixed;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  padding: 24px;
  background: #ffffff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #101828;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  z-index: 101;
}

.chat__modal-title {
  color: #101828;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.chat__modal-text {
  color: #475467;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 8px;
}

.chat__modal-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 32px;
}

.chat__modal-btn {
  background-color: #ffffff;
  border: 1px solid #101828;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #101828;
  width: 100%;
}

.chat__modal-btn-close {
  background-color: #7c3546; /* Primary color */
  color: #ffffff;
}

.chat__privacy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  user-select: none;

}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #ffffff;
  border-radius: 5px;
  border: 1px solid #d0d5dd;
  transition: background-color 0.2s;
}

.custom-checkbox.invalid-checkbox .checkmark {
  border: 1px solid rgb(247, 4, 4);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #2b58f1;
}

.custom-checkbox .checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chat__privacy a {
  color: #cbd5e1;
  text-decoration: underline;
  margin-left: 4px;
}

.chat__privacy a:hover {
  text-decoration: underline;
}

.chat__bot-text p {
  margin: 0 0 1em;
}

.chat__bot-text strong {
  font-weight: bold;
}

.chat__bot-text em {
  font-style: italic;
}

.chat__bot-text a {
  color: #3498db;
  text-decoration: none;
}

.chat__bot-text a:hover {
  text-decoration: underline;
}

.chat__bot-text ul,
.chat__bot-text ol {
  margin: 0 0 1em 1.5em;
}

.chat__bot-text code {
  background-color: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* --- University Landing Page Flat Design --- */
.uni-landing {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.uni-landing__image {
  flex: 1.2;
  background: url('/images/college-campus.jpg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.uni-landing__overlay {
  background: rgba(124, 53, 70, 0.7); /* Primary color, flat, semi-transparent */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.uni-landing__logo img {
  width: 90px;
  margin-bottom: 24px;
}

.uni-landing__welcome {
  text-align: center;
  color: #fdfcfc; /* Secondary text color */
}

.uni-landing__welcome h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.uni-landing__welcome p {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

.uni-landing__form {
  flex: 1;
  background: #f4f4f4; /* Secondary color 2 */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 340px;
  min-height: 350px;
}

.uni-landing__form-inner {
  width: 100%;
  max-width: 370px;
  margin: 32px;
  background: #fff;
  border: 2px solid #ceb888; /* Secondary color 1 */
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.uni-landing__form-inner h2 {
  color: #7c3546; /* Primary color */
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.chat-start__input,
.chat-start__input-button {
  border-radius: 8px;
  border: 1px solid #ceb888;
  background: #f4f4f4;
  color: #2c2a29;
  margin-bottom: 8px;
}

.chat-start__input-button {
  background: #7c3546;
  color: #fdfcfc;
  border: 1px solid #7c3546;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}

.chat-start__input-button:hover {
  background: #ceb888;
  color: #2c2a29;
  border-color: #ceb888;
}

.chat__privacy {
  font-size: 0.95rem;
  color: #2c2a29;
  margin-top: 8px;
}

.custom-checkbox .checkmark {
  border: 1.5px solid #ceb888;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #7c3546;
}

.custom-checkbox .checkmark:after {
  border-color: #fdfcfc;
}

.chat__privacy a {
  color: #7c3546;
}

@media (max-width: 900px) {
  .uni-landing {
    flex-direction: column;
  }
  .uni-landing__image, .uni-landing__form {
    min-height: 220px;
    width: 100vw;
    max-width: 100vw;
  }
  .uni-landing__form-inner {
    margin: 24px auto;
  }
}

/* --- Centered University Landing Page --- */
.uni-centered-bg {
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/college-campus.jpg') center center/cover no-repeat;
  overflow: hidden;
}

.uni-centered-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124, 53, 70, 0.7); /* Primary color, flat, semi-transparent */
  z-index: 0;
}

.uni-centered-form {
  position: relative;
  z-index: 1;
  background: #f4f4f4;
  border: 2px solid #ceb888;
  border-radius: 18px;
  padding: 40px 28px 28px 28px;
  max-width: 370px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: none;
}

.uni-centered-logo {
  background-color: #7c3546;
  padding: 8px;
}

.uni-centered-logo img {
  width: 80px;
 
}

.uni-centered-title {
  color: #7c3546;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  text-align: center;
}

.uni-centered-subtitle {
  color: #2c2a29;
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  text-align: center;
}

.chat-start__input,
.chat-start__input-button {
  border-radius: 8px;
  border: 1.5px solid #ceb888;
  background: #fff;
  color: #2c2a29;
  margin-bottom: 8px;
}

.chat-start__input-button {
  background: #7c3546;
  color: #fdfcfc;
  border: 1.5px solid #7c3546;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}

.chat-start__input-button:hover {
  background: #2c2a29;
  color: #ceb888;
  border-color: #ceb888;
}

/* Loading spinner for button */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

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

.chat-start__input-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.chat__privacy {
  font-size: 0.95rem;
  color: #2c2a29;
  margin-top: 8px;
}

.custom-checkbox .checkmark {
  border: 1.5px solid #ceb888;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #7c3546;
}

.custom-checkbox .checkmark:after {
  border-color: #fdfcfc;
}

.chat__privacy a {
  color: #7c3546;
}

@media (max-width: 600px) {
  .uni-centered-form {
    padding: 24px 8px 16px 8px;
    max-width: 98vw;
  }
  .uni-centered-logo img {
    width: 60px;
  }
  .uni-centered-title {
    font-size: 1.3rem;
  }
}

