html {
  font-size: 14px;
}

.leaderboard-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.leaderboard-shell--embed {
  max-width: none;
  padding: 0.75rem;
}

.leaderboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.leaderboard-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.leaderboard-header p,
.leaderboard-updated {
  margin: 0.25rem 0 0;
  color: #5f6670;
}

.leaderboard-updated {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.leaderboard-shell--embed .leaderboard-updated {
  gap: 0.25rem;
}

.leaderboard-shell--embed .leaderboard-header {
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.leaderboard-shell--embed .leaderboard-header h1 {
  font-size: 1.25rem;
}

.leaderboard-shell--embed .leaderboard-header p {
  font-size: 0.875rem;
}

.refresh-data-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.refresh-data-control--compact {
  gap: 0.5rem;
}

.refresh-data-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.refresh-data-button__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.refresh-data-button__icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.refresh-data-button.is-refreshing .refresh-data-button__icon {
  animation: refresh-data-spin 0.8s linear infinite;
}

.refresh-data-control--compact .refresh-data-button {
  width: 2rem;
  height: 2rem;
  justify-content: center;
  padding: 0;
}

.refresh-data-control--compact .refresh-data-control__timestamp {
  font-size: 0.8125rem;
}

@keyframes refresh-data-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .refresh-data-button.is-refreshing .refresh-data-button__icon {
    animation: none;
  }
}

.leaderboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.leaderboard-shell--embed .leaderboard-metrics {
  grid-template-columns: repeat(4, minmax(9rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.leaderboard-metrics > div,
.leaderboard-progress,
.leaderboard-empty {
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
  padding: 1rem;
}

.leaderboard-shell--embed .leaderboard-metrics > div,
.leaderboard-shell--embed .leaderboard-progress,
.leaderboard-shell--embed .leaderboard-empty {
  padding: 0.75rem;
}

.leaderboard-metrics span,
.leaderboard-progress__label span {
  display: block;
  color: #5f6670;
  font-size: 0.875rem;
}

.leaderboard-metrics strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

.leaderboard-shell--embed .leaderboard-metrics strong {
  font-size: 1.05rem;
}

.leaderboard-progress {
  margin-bottom: 1.25rem;
}

.leaderboard-shell--embed .leaderboard-progress {
  margin-bottom: 0;
}

.leaderboard-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.leaderboard-empty {
  background: #f8f9fa;
  color: #5f6670;
}

.leaderboard-empty--compact {
  margin-bottom: 1rem;
}

.leaderboard-table th,
.leaderboard-table td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .leaderboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-shell--embed .leaderboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .leaderboard-header {
    display: block;
  }

  .leaderboard-metrics {
    grid-template-columns: 1fr;
  }

  .leaderboard-shell--embed .leaderboard-header {
    align-items: flex-start;
  }

  .leaderboard-shell--embed .leaderboard-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.text-justify-custom {
  text-align: justify;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.page-shell {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.app-main,
.admin-main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.card-dark {
  background-color: #0d1c2596;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(59, 128, 232, 0.466),
    0 2px 4px -1px rgba(53, 90, 201, 0.784);
  padding: 1.5rem;
  text-align: center;
}

.color-miles {
  color: hwb(192 9% 2%);
}

.color-steps-per-mile {
  color: #3b82f6;
}

.color-steps-per-minute {
  color: #22c55e;
}

.color-minutes-for-mile {
  color: #f7bc55;
}

/* Custom styles for the cards */
.card-dark {
  background-color: #343a40;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-miles {
  color: #28a745;
  /* Green color */
}

.color-steps-per-mile {
  color: #17a2b8;
  /* Teal color */
}
.disclaimer-container {
  background-color: #e74c3c;
  color: white;
  padding: 15px;
  margin: 10px auto; /* This 'auto' margin might be part of the issue on desktop for centering within a non-full-width parent */
  border-radius: 5px;
  box-sizing: border-box;
}

.disclaimer-text {
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Media query for smaller screens (e.g., mobile phones) */
@media (max-width: 600px) {
  .disclaimer-container {
      max-width: 95%;
      padding: 10px;
  }
  .disclaimer-text {
      font-size: 14px;
      line-height: 1.3;
  }
}

/* Media query for larger screens (desktop) */
@media screen and (min-width: 768px) {
.disclaimer-container { /* <--- CORRECTED CLASS NAME HERE */
    width: 100%;
    max-width: 100%; /* Ensure no other max-width is limiting it */
    margin: 0; /* Remove auto margin on desktop to ensure full width, if not desired to be centered */
    padding: 15px; /* Re-apply base padding or adjust as needed */
}
}
