/* Base layout and typography */
body {
  font-family: "Source Sans Pro", sans-serif;
}

#content {
  background-image: url("https://raw.githubusercontent.com/markmcrg/anr-temp-page/refs/heads/main/page_bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow-y: auto;
}

.home-text {
  text-shadow: 2px 2px 6px #2e2c2c;
  line-height: 1.6;
  font-weight: 400;
  word-break: break-word;
  box-sizing: border-box;
  color: white;
}

.home-title {
  font-weight: 700;
  text-shadow: 2px 2px 6px #2e2c2c;
  color: white;
}

.home-title-highlight {
  color: #f5c472;
}

.page-title {
  text-shadow: 2px 4px 6px #2e2c2c;
  color: #f5c472;
  font-weight: 700;
  text-align: center;
}

.site-title {
  /* Font-size set by media queries */
}

.req-btn {
  font-size: 15px;
}

.req-btn:is(input[type="checkbox"]:checked),
.req-btn:is(input[type="radio"]:checked),
.req-btn:is(input[type="checkbox"]:checked):hover,
.req-btn:is(input[type="radio"]:checked):hover {
  border-color: white;
  border-width: 3px;
  background-color: maroon;
  color: white;
}

.btn-maroon {
  background-color: maroon;
  color: white;
}

.btn-maroon:hover {
  background-color: #600000;
}

.bg-maroon {
  background-color: maroon;
}

.bg-maroon:hover {
  background-color: #800000;
}

.socn-column {
  width: 1%;
}

.steps .step-primary + .step-primary::before,
.steps .step-primary::after,
.steps .step-primary > .step-icon {
  --step-bg: maroon !important;
  --step-fg: white;
}

.checkbox-primary {
  color: white !important;
  --input-color: maroon !important;
}

td.clickable-row:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

td.clickable-row {
  cursor: pointer;
}

#final-decision-buttons label {
  background-color: white;
  color: #800000;
  border: 1px solid #800000;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#final-decision-buttons label:has(input[type="radio"]:checked) {
  background-color: maroon;
  color: white;
  border-color: white;
  border-width: 2px;
}

.disabled-link {
  pointer-events: none;
  color: grey;
  text-decoration: none;
}

.shadow-elevation {
  box-shadow: 1px 1px 7px #2e2c2c;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

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

.text-shadow-lg {
  text-shadow: 2px 2px 6px #2e2c2c;
}

/* Tracker form */
#tracker-form {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  width: 100%;
}

.center-svg {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#tracker-form th,
#tracker-form td {
  padding: 5px 12px;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}

#tracker-form td {
  border: 1px solid #e0e0e0;
}

#tracker-form th {
  background-color: #800000;
  color: white;
}

#tracker-form td:first-child,
#tracker-form td:last-child {
  white-space: nowrap;
  width: 1%;
}

#tracker-form tr:last-child td {
  border-bottom: none;
}

#tracker-form tr:nth-child(even) {
  background-color: #f8f8f8;
}

.status-icon {
  font-size: 1.2em;
}

.status-check {
  color: #28a745;
}

.status-cross {
  color: #dc3545;
}

.tooltip-container .tooltip {
  display: none;
}

button[disabled] + .tooltip {
  display: block;
}

.tooltip-content {
  max-width: 130px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 1;
}

/* Utilities */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
}

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

#submission-data {
  display: none;
}

#revalidation-div {
  display: none;
}

.no-content-padding #content {
  padding: 0 !important;
}

table.submissions-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  width: 100%;
}

table.submissions-table td {
  font-size: 15px !important;
}

/* HTMX loading indicator visibility */
.htmx-indicator {
  display: none;
}

/* Show indicator when the request element is active */
.htmx-request .htmx-indicator {
  display: inline-block;
}

/* Also show if the indicator itself receives the request class (via hx-indicator) */
.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Responsive Typography */
@media (max-width: 640px) {
  /* Mobile devices (small screens) */
  .home-title {
    font-size: 32px;
  }

  .page-title {
    font-size: 24px;
  }

  .home-text {
    font-size: 16px;
  }

  .site-title {
    font-size: 18px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  /* Tablets (medium screens) */
  .home-title {
    font-size: 48px;
  }

  .page-title {
    font-size: 32px;
  }

  .home-text {
    font-size: 17px;
  }

  .site-title {
    font-size: 20px;
  }
}

@media (min-width: 1025px) {
  /* Desktop (large screens) - keep original sizes */
  .home-title {
    font-size: 70px;
  }

  .page-title {
    font-size: 45px;
  }

  .home-text {
    font-size: 18px;
  }

  .site-title {
    font-size: 22px;
  }
}
