/* ------------------------------------------------ */
/* LOADER */
/* ------------------------------------------------ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.loader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-icon {
  width: 100px;
  height: 100px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------ */
/* HEADER */
/* ------------------------------------------------ */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------------ */
/* NAVBAR */
/* ------------------------------------------------ */
.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.navbar a,
.navbar button {
  outline: none !important;
  box-shadow: none !important;
}

/* ------------------------------------------------ */
/* CUSTOM NAVBAR TOGGLER — STATIC CLEAN VERSION */
/* ------------------------------------------------ */
.custom-toggler {
  border: none !important;              /* No border ever */
  background: transparent !important;   /* Always transparent */
  padding: 0.35rem 0.5rem !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;          /* Disable all hover/focus transitions */
  cursor: pointer;
}

/* Prevent any visual change on hover, focus, or click */
.custom-toggler:hover,
.custom-toggler:focus,
.custom-toggler:active {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

/* Keep logo completely static */
.custom-toggler img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  pointer-events: none;
  transition: none !important;
}


/* ------------------------------------------------ */
/* TERMS AND CONDITIONS */
/* ------------------------------------------------ */
.main-list {
  counter-reset: main-counter;
  list-style: none;
  padding-left: 1em;
  margin-bottom: 1rem;
}

.main-list > li {
  counter-increment: main-counter;
  margin-bottom: 1rem;
  padding-left: 2.5em;
  position: relative;
}

.main-list > li::before {
  content: counter(main-counter) ". ";
  position: absolute;
  left: 0;
}

.sub-list {
  counter-reset: sub-counter;
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.sub-list > li {
  counter-increment: sub-counter;
  margin-bottom: 0.5rem;
  padding-left: 2.5em;
  position: relative;
}

.sub-list > li::before {
  content: counter(main-counter) "." counter(sub-counter) " ";
  position: absolute;
  left: 0;
}

.sub-sub-list {
  list-style-type: lower-alpha;
  padding-left: 2.5em;
  margin-top: 0.25rem;
}

body {
  overflow-y: auto;
}

/* ------------------------------------------------ */
/* BACK TO TOP BUTTON */
/* ------------------------------------------------ */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border: 2px solid #000; /* thin black border */
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  font-weight: bold;
  background-color: transparent; /* transparent by default */
  color: #000; /* black icon/text */
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#back-to-top:hover,
#back-to-top:active {
  background-color: #000; /* solid black on hover or click */
  color: #fff; /* white icon/text */
  border-color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------ */
/* TABLES */
/* ------------------------------------------------ */
.table-sm {
  font-size: 0.8rem;
}

#heatmap-container {
  width: 100%;
  height: 50vh;
}

#heatmap-container > div,
#heatmap-container .plotly {
  height: 100% !important;
  width: auto !important;
  max-width: 100%;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
  position: absolute;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 0.5rem;
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
}

div.dataTables_wrapper .dataTables_length {
  left: 0;
  text-align: left;
}

div.dataTables_wrapper .dataTables_filter {
  right: 0;
  text-align: right;
}

div.dataTables_wrapper {
  position: relative;
  padding-top: 3rem;
}

div.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  div.dataTables_wrapper .dataTables_filter {
    max-width: 50%;
  }
  div.dataTables_wrapper .dataTables_filter input {
    width: 100%;
    min-width: 80px;
  }
}

#Last-Updated p {
  font-size: 0.85rem;
  color: #555;
  background: #f8f9fa;
  border-left: 4px solid #000;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 0;
  line-height: 1.2;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------ */
/* LOGIN PAGE */
/* ------------------------------------------------ */
.login-page {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 576px) {
  .login-page {
    margin-top: 0.25rem;
  }

  .login-page .card {
    width: 100%;
    max-width: 100%;
  }
}

/* ------------------------------------------------ */
/* SOE BUTTONS */
/* ------------------------------------------------ */
.soe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  min-width: 80px;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .soe-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

.form-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------ */
/* CAROUSEL (KEEN SLIDER) */
/* ------------------------------------------------ */
.keen-slider__slide {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
}

.uniform-card {
  width: 100%;
  max-width: 700px;
  height: 420px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: none !important; /* no animations */
}

/* keep static look on hover */
.uniform-card:hover {
  transform: none !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

/* internal card layout */
.uniform-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* card title */
.text-truncate-1 {
  font-size: 1.15rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  white-space: normal;
  overflow: visible;
}

/* view summary button */
.uniform-card .btn-outline-primary {
  border: 1px solid #000 !important;
  color: #000 !important;
  background-color: transparent !important;
  font-weight: 500;
  transition: all 0.25s ease;
}

.uniform-card .btn-outline-primary:hover,
.uniform-card .btn-outline-primary:focus,
.uniform-card .btn-outline-primary:active {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: none !important;
}

/* responsive sizing */
@media (max-width: 768px) {
  .uniform-card {
    max-width: 90%;
    height: 380px;
  }
}

/* carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.carousel-arrow:hover {
  background: #000;
  color: #fff;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.carousel-arrow:disabled {
  opacity: 1.0;
  pointer-events: none;
}

.carousel-arrow-left {
  left: 25px;
}

.carousel-arrow-right {
  right: 25px;
}

/* prevent accidental nav popups on Chrome/PWA */
.keen-slider,
.keen-slider__slide,
.uniform-card {
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: pan-y !important;
}

/* ------------------------------------------------ */
/* COPY TOAST ANIMATION */
/* ------------------------------------------------ */
.toast {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
}

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

.toast.text-bg-dark {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------ */
/* MOBILE CONTAINER FIX */
/* ------------------------------------------------ */
@media (max-width: 768px) {
  section .container {
    max-width: 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ------------------------------------------------ */
/* AGE SLIDER BUTTONS — PERFECT CIRCLES */
/* ------------------------------------------------ */
.age-arrow {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 37px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: inline-flex;                 /* ensure consistent centering */
  align-items: center;
  justify-content: center;
  padding: 0;                           /* remove any inner padding */
  line-height: 1;                       /* prevents height inflation */
  box-sizing: border-box;               /* guarantees equal width/height */
  transition: all 0.25s ease;
  margin: 0 4px;
  vertical-align: middle;               /* keeps them even with input */
}

.age-arrow:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.age-arrow:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.age-arrow i {
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------ */
/* GUARDRAIL DROPDOWN BUTTONS (MATCHES ARROW STYLE) */
/* ------------------------------------------------ */
.dropdown-guardrail {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 50px;                /* soft pill shape */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 0.4rem 1rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dropdown-guardrail:hover,
.dropdown-guardrail:focus {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
  outline: none !important;
}

.dropdown-guardrail::after {
  display: none !important;           /* hide Bootstrap caret */
}

.dropdown-menu.show {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

/* ------------------------------------------------ */
/* CAROUSEL ARROWS — ALIGN OUTER EDGE TO CARD EDGE  */
/* ------------------------------------------------ */
:root {
  --card-max: 700px;  /* must match .uniform-card max-width */
}

@media (min-width: 992px) {
  /* Move arrows so their outer edge aligns with card edges */
  .position-relative > .carousel-arrow-left {
    left: calc(50% - (var(--card-max) / 2) - 24px) !important;
  }

  .position-relative > .carousel-arrow-right {
    right: calc(50% - (var(--card-max) / 2) - 24px) !important;
  }
}

/* ------------------------------------------------ */
/* ANALYTICS SUMMARY TABLE — CLEAN STRAIGHT EDGES   */
/* ------------------------------------------------ */
.soe-summary-table {
  font-size: 0.9rem;
  border-collapse: collapse;
  background-color: #fff;
  width: 100%;
}

.soe-summary-table th {
  background-color: #f8f9fa !important;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #dee2e6 !important;
  padding: 0.75rem;
}

/* ✅ Right-align Value and Percent headers */
.soe-summary-table th:nth-child(2),
.soe-summary-table th:nth-child(3) {
  text-align: right;
}

.soe-summary-table td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

.soe-summary-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease-in-out;
}

.soe-summary-table td:first-child {
  font-weight: 500;
}

/* Right-align numeric cells */
.soe-summary-table td:nth-child(2),
.soe-summary-table td:nth-child(3) {
  text-align: right;
}

@media (max-width: 576px) {
  .soe-summary-table th,
  .soe-summary-table td {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}





