/* =========================================================
   BOOTSTRAP THEME — YOUR ORIGINAL SHEET (UNMODIFIED)
   ========================================================= */

html,
body {
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 6px;
  padding-right: 6px;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 500;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.35rem;
  font-weight: 500;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Meet Max Logo — Option A (Dark Mode Primary) */

.logo .accent {
  background: linear-gradient(90deg, #04b0d3, #601ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.logo {
  font-weight: 700;
  font-size: 2.75rem;
}

.logo img {
  padding: 0;
  margin: 0;
  width: 100%;
}

.accent {
  color: #2563eb;
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 300;
}

.form-floating label {
  font-size: 0.85rem;
}

.form-control {
  border-radius: 10px;
}

.form-signin {
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="username"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.card {
  padding: 20px;
  font-size: 1rem;
  font-weight: 300;
  border-radius: 16px;
  background-color: #ffffff;
  margin-bottom: 1rem;
}

/* Light mode */
[data-bs-theme="light"] .bg-body-tertiary {
  background-color: #ffffff !important;
}

[data-bs-theme="light"] .card {
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  height: 100%;
  border: 1px solid #c7d0da;
}

/* Dark mode */
[data-bs-theme="dark"] .card {
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
    border: 1px solid #c7d0da;
}

[data-bs-theme="dark"] .card {
  background: #1c1c1e7c;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------- */
/* ACCOUNT HEADER                  */
/* ---------------------------------- */
/* Main highlight card */
.account-highlight {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
      height: 100%;
      border: 1px solid #c7d0da;
}

/* Light + dark mode friendly inner boxes */
.activation-box,
.membership-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Dark mode */
[data-bs-theme="dark"] .account-highlight {
  background: #0b1a3a;
}

[data-bs-theme="dark"] .activation-box,
[data-bs-theme="dark"] .membership-box {
  background: #11224d;
  border-color: #1f2f5c;
}

/* ---------------------------------- */
/* PAGES SIDEBAR                */
/* ---------------------------------- */

.resource-item a {
  color: inherit;
  display: flex;
  align-items: flex-start;
}

.resource-item a:hover .resource-title {
  color: #0d6efd;
}

.resource-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}

.resource-title {
  font-size: .95rem;
  margin-bottom: 2px;
}

.resource-teaser {
  line-height: 1.3;
}

/* ---------------------------------- */
/* LIGHT MODE FOOTER                  */
/* ---------------------------------- */
[data-bs-theme="light"] .footer-area {
  border-top: 1px solid #d6d9e0; /* solid top line */
  box-shadow: inset 0 6px 12px -6px rgba(0, 0, 0, 0.12); /* inside shadow */
}

/* ---------------------------------- */
/* DARK MODE FOOTER                   */
/* ---------------------------------- */
[data-bs-theme="dark"] .footer-area {
  border-top: 1px solid #0c2a6e; /* solid top line */
  box-shadow: inset 0 6px 14px -6px rgba(0, 0, 0, 0.55); /* deeper inside shadow */
}

.card h2 {
  font-weight: 600;
  font-size: 1.5rem;
}

.newhere-link {
  display: inline-block;
  font-size: 1rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.newhere-link:hover {
  text-decoration: underline;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: .75rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  max-width: 1800px;
}

/* Space between top-level nav items */
.navbar-nav > li.nav-item {
  margin-right: 1rem;   /* adjust spacing here */
}

.navbar-nav > li.nav-item:last-child {
  margin-right: 0;      /* keeps right edge clean */
}

/* Hover color for main nav links */
.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
}

/* Icon + text spacing inside nav links */
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Hover color for dropdown items */
.dropdown-item:hover {
  color: #0d6efd !important;
}

/* Light mode */
[data-bs-theme="light"] .menu-item {
  background-color: #ffffff;
  border: 1px solid #c7d0da;
  color: #333;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

[data-bs-theme="light"] .menu-item:hover {
  background-color: #edf1f5;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.12);
}

/* Dark mode */
[data-bs-theme="dark"] .menu-item {
  background-color: #152447;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

[data-bs-theme="dark"] .menu-item:hover {
  background-color: #1d3366;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
}

.menu-item:hover {
  transform: translateY(-1px);
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
}

.menu-item .menu-text-main,
.menu-item .menu-text-sub {
  color: inherit !important;
  text-decoration: none !important;
}

.menu-item:hover {
  transform: translateY(-1px);
  border-color: #CBD5E1;
  cursor: pointer;
}

.menu-icon {
  width: 65px;
  height: 65px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  font-size: 3.5rem;
  color: #1c2869;
  flex-shrink: 0;
  border: 1px solid #c7d0da;
  background: #fff;
}

.menu-text-main {
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.05em;
}

.menu-text-sub {
  font-size: 0.95rem;
  font-weight: 300;
  margin-top: 4px;
  text-align: left;
}

.menu-chevron {
  margin-left: auto;
  color: #6f7aa8;
  font-size: 1.1rem;
}

.text-shadow-1 {
  text-shadow: 0 .125rem .25rem rgba(0, 0, 0, .25);
}

.text-shadow-2 {
  text-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25);
}

.text-shadow-3 {
  text-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
}

.card-cover {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.feature-icon-small {
  width: 3rem;
  height: 3rem;
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: #0000001a;
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow:
    inset 0 0.5em 1.5em #0000001a,
    inset 0 0.125em 0.5em #00000026;
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
  --bd-violet-bg: #2c41f9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #2d6fe9;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #2c41f9;
  --bs-btn-active-border-color: #5a23c8;
}

.btn-primary {
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.btn-outline-primary {
  border-radius: 999px;
  font-weight: 600;
}

.bd-mode-toggle {
  position: fixed;
  bottom: 0rem;
  right: 1rem;
  z-index: 9999;
}

.bd-mode-toggle .bi {
  width: 1em;
  height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

/* Hide mobile submenus by default */
.mobile-nav .submenu {
  display: none;
}

/* Open submenu when parent is hovered or tapped */
.mobile-nav .dropdown-mobile:hover > .submenu,
.mobile-nav .dropdown-mobile:focus-within > .submenu {
  display: block;
}

.copyright {
  font-size: .8rem;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--brand-primary), #6f8bff);
}

.bg-pink {
  background: var(--brand-pink);
}

.bg-purple {
  background: var(--brand-purple);
}

.translate-up {
  transform: translateY(-6px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.hover-lift {
  transition: transform .18s ease, box-shadow .18s ease;
}

.icon {
  width: 56px;
  height: 56px;
}

/* Bottom Nav */

[data-bs-theme="light"] .bottom-nav {
  background-color: #FFFFFF;
}

[data-bs-theme="light"] .bottom-nav .nav-link {
  color: #212529;
}

[data-bs-theme="light"] .bottom-nav .nav-link.active {
  color: #0d6efd;
}

[data-bs-theme="dark"] .bottom-nav {
  background-color: #091632;
}

[data-bs-theme="dark"] .bottom-nav .nav-link {
  color: #e9ecef;
}

[data-bs-theme="dark"] .bottom-nav .nav-link.active {
  color: #66b2ff;
}

.mobile-bottom-nav,
.navbar.fixed-bottom {
  z-index: 1050;
}

.navbar.fixed-bottom .nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .5rem .25rem;
  width: 64px;
  border-radius: .5rem;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}

.navbar.fixed-bottom .nav-link:hover,
.navbar.fixed-bottom .nav-link:focus {
  background-color: rgba(0, 123, 255, 0.08);
  color: var(--bs-primary) !important;
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
}

.navbar.fixed-bottom .nav-link.active {
  background-color: rgba(0, 123, 255, 0.14);
  color: var(--bs-primary) !important;
  font-weight: 600;
}

.navbar.fixed-bottom .nav-link .bi {
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
}

.navbar.fixed-bottom .nav-link .small {
  display: block;
  font-size: .65rem;
  color: inherit;
  opacity: .9;
}

.app-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.tag-list .tag {
  display: inline-block;
  background: #e5e5e5;
  padding: 6px 14px;
  border-radius: 15px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.chat-item {
  padding: 16px;
  border-radius: 15px;
  margin-bottom: 16px;
  background: var(--bs-light-bg-subtle);
  cursor: pointer;
}

.chat-title {
  font-weight: 600;
}

.chat-snippet {
  color: #666;
  margin-top: 4px;
}

.chat-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 6px;
}

.badge {
  font-size: .95rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

/* Account */

.account-wrapper {
  max-width: 1800px;
}

.account-card {
  background: transparent;
}

.profile-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

.form-label {
  font-size: 0.85rem;
  color: #374151;
}

.form-control {
  border-radius: 10px;
}

.form-text {
  font-size: 0.75rem;
}

.activation-box,
.membership-box {
  background: transparent;
}

.btn-primary {
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
}

/* Responsive */

@media (hover: none) {

  .navbar.fixed-bottom .nav-link:hover,
  .navbar.fixed-bottom .nav-link:focus {
    transform: none;
    background-color: transparent;
  }
}

@media (min-width: 992px) {
  .bd-mode-toggle {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .account-card {
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
  }
}



/* =========================================================
      CHAT UI — YOUR SECOND SHEET (UNMODIFIED)
      ========================================================= */

.chat-wrapper {
  max-width: 1800px;
  margin: 0 auto;
  /* height: calc(90vh - 100px); */
  display: flex;
  flex-direction: column;
  background: transparent
}

.chat-window {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding: .5rem;
  background: transparent !important;
}

.message {
  max-width: 90%;
  padding: .5rem .75rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  font-size: .95rem;
  line-height: 1.4;
  display: inline-block;
  animation: fadeIn .25s ease;
}

.message-user {
  background: #0d6efd;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-bot {
  background: #f6f6f6;
  color: #212529;
  border-bottom-left-radius: 4px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 25%;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  margin-right: .5rem;
}

.message-row {
  display: flex;
  align-items: flex-end;
}

.chat-input-bar {
  display: flex;
  gap: .5rem;
  /* padding: .75rem; */
  background: transparent;
  border-radius: 14px;
  /* border: 1px solid #e2e6ea; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.chat-input-bar input {
  border-radius: 10px;
  font-size: .95rem;
}

.chat-input-bar .btn-primary {
  border-radius: 10px;
  /* padding: .5rem 1rem; */
  font-size: medium;
  padding: 0;
  line-height: 0;
  width: 35px;
  height: 35px;
  margin: auto;
  font-weight: 600;
}

.chat-btn {
  border: 1px solid #e2e6ea;
}

.typing {
  font-size: .8rem;
  color: #6c757d;
  margin-bottom: .5rem;
  animation: pulse 1.2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: .4;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: .4;
  }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .chat-wrapper {
    padding: .5rem;
  }

  .message {
    max-width: 90%;
  }
}