:root {
  --lagoon-blue: #1a6fb5;
  --lagoon-dark: #0d4a7a;
}

body {
  background-color: #f4f7fb;
  min-height: 100vh;
}

.navbar-brand {
  letter-spacing: 0.02em;
}

.ride-card {
  transition: transform 0.15s, box-shadow 0.15s;
}

.ride-card:not(.disabled-ride):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ride-card.disabled-ride {
  opacity: 0.55;
  filter: grayscale(0.7);
}

.ride-card.ridden {
  border-color: var(--lagoon-blue) !important;
  background-color: #e8f2fb;
}

.ride-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.375rem 0.375rem 0 0;
}

.thrill-badge {
  font-size: 0.75rem;
}

.chart-container {
  max-width: 220px;
  margin: 0 auto;
}

.user-card-link {
  text-decoration: none;
  color: inherit;
}

.user-card-link:hover .card {
  border-color: var(--lagoon-blue);
  box-shadow: 0 4px 12px rgba(26, 111, 181, 0.2);
}

.milestone-meter {
  position: relative;
  height: 28px;
  background: #e9ecef;
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 0.35rem;
}

.milestone-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lagoon-blue), #3d9ae8);
  border-radius: 14px;
  transition: width 0.4s ease;
}

.milestone-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.milestone-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--lagoon-dark);
  margin: 0 auto;
}

.milestone-marker.reached .milestone-marker-dot {
  background: var(--lagoon-blue);
  border-color: var(--lagoon-dark);
}

.milestone-marker-count {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--lagoon-dark);
  white-space: nowrap;
}

.milestone-pct {
  font-size: 0.8rem;
  color: var(--lagoon-dark);
}

.milestone-desc-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.milestone-desc-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  align-self: stretch;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #e8590c;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(232, 89, 12, 0.35);
  line-height: 1.3;
}

.milestone-thumb-btn {
  border: none;
  background: none;
  padding: 0;
  flex-shrink: 0;
  cursor: zoom-in;
  border-radius: 0.5rem;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.milestone-thumb-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.milestone-desc-thumb {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.milestone-desc-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.milestone-modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0.25rem;
}

.milestone-desc-item.reached {
  background: #2f9e44;
  box-shadow: 0 1px 3px rgba(47, 158, 68, 0.35);
}

.milestone-desc-count {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.milestone-desc-text {
  line-height: 1.3;
}

.user-column {
  display: flex;
  flex-direction: column;
}

.milestone-card .card-body {
  padding: 1rem;
}

.milestone-thrill-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #dee2e6;
}

.milestone-level-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lagoon-dark);
  margin-bottom: 0.35rem;
}

.milestone-ridden-count {
  margin-top: 0.25rem;
}

.year-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lagoon-dark);
}

.height-restriction {
  font-size: 0.8rem;
  color: #dc3545;
}

.milestone-row {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.ms-image-preview {
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  object-fit: cover;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
}

.ms-image-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  border: 1px dashed #ced4da;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #adb5bd;
  text-align: center;
  line-height: 1.1;
}

.ms-image-upload {
  font-size: 0.7rem;
  max-width: 110px;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}
