/* Legacy-only CSS
   Keep this file small to avoid overriding Bootstrap + app.css.
   This file is loaded for older templates and for components not yet migrated.
*/

.muted {
  color: rgba(255, 255, 255, 0.70);
}


/* =========================
   XP Banner
   ========================= */

.xp-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(90deg, #6d28d9, #2563eb, #059669);

  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;

  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.18);
}

.xp-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}


/* =========================
   Toast
   ========================= */

#toast-root {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;

  pointer-events: none;
}

.toast {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;

  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;

  background: rgba(15, 27, 51, 0.95);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  max-width: 360px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.xp {
  background: linear-gradient(90deg, #6d28d9, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.14);
}


/* =========================
   Brand Buttons
   ========================= */

.btn-brand {
  background-color: #1e293b;   /* deep academic navy */
  border-color: #1e293b;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-brand:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.btn-brand:focus,
.btn-brand:active {
  background-color: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 0 0 0.15rem rgba(30, 41, 59, 0.25);
}

/* Hover effect for light bordered buttons */
.btn-light.border:hover {
  border-color: #c6c6c6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Brand outline button (dark academic theme) */
.btn-brand-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e2e8f0;
  font-weight: 500;
}

.btn-brand-outline:hover {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.75);
  color: #ffffff;
}

/* Quiet link button (dark academic theme) */
.btn-quiet-link {
  background: transparent;
  border: 0;
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.btn-quiet-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Google button styling */
.btn-google {
  background-color: #ffffff;
  border: 1px solid #dadce0;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-weight: 500;
}

.btn-google:hover {
  border-color: #c6c6c6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* =========================
   Auth Header
   ========================= */

.auth-page .auth-header {
  background-color: rgba(17, 24, 39, 0.85); /* navy translucent */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  box-shadow: none;
  position: static;
}

.auth-page .auth-header .navbar-brand,
.auth-page .auth-header .navbar-brand span {
  color: #ffffff;
  font-weight: 600;
}

.auth-page .auth-header .btn-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-page .auth-header .btn-link:hover {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.95;
}


/* Adjust spacing for auth pages */
.auth-page #mainContent {
  padding-top: 1rem;
}