:root {
  --status-unassigned: #ffc107;
  --status-assigned: #0d6efd;
  --status-completed: #198754;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.leader-row .js-feedback {
  min-height: 1.25rem;
}

.leader-row.saving {
  opacity: 0.6;
}

.leader-row.error {
  background-color: rgba(220, 53, 69, 0.08);
}

.hero-banner {
  background-color: #0f5132;
  background-image: linear-gradient(135deg, #0f5132, #882346);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-emblem {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-60%);
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.3);
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.hero-fleur {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", serif;
  display: inline-block;
  position: relative;
}

.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ccircle cx='10' cy='10' r='2' fill='%23ffffff26'/%3E%3Ccircle cx='80' cy='80' r='3' fill='%23ffffff33'/%3E%3Ccircle cx='120' cy='40' r='1.5' fill='%23ffffff1f'/%3E%3C/svg%3E");
  opacity: 0.3;
  animation: snow-float 12s linear infinite;
}

.hero-banner::after {
  inset: 0.5rem;
  opacity: 0.5;
  animation-duration: 18s;
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.hero-content h1 {
  font-family: "Playfair Display", Georgia, serif;
}

.hero-tags .badge {
  font-weight: 600;
}

@keyframes snow-float {
  0% {
    transform: translate(-20px, -10px) scale(1);
  }
  50% {
    transform: translate(20px, 10px) scale(1.02);
  }
  100% {
    transform: translate(-20px, -10px) scale(1);
  }
}

.filter-bar {
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 81, 50, 0.08);
}

.status-filter .btn.active {
  background-color: #0f5132;
  color: #fff;
}

.phase-section {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(19, 64, 50, 0.1);
}

.phase-header .badge {
  font-size: 0.85rem;
}

.street-card {
  background: #fffdf7;
  border-radius: 1rem;
  padding: 1rem 1rem 0.75rem;
  border: 2px solid transparent;
  position: relative;
  min-height: auto;
  box-shadow: 0 6px 16px rgba(15, 81, 50, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.street-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.street-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.street-link:hover,
.street-link:focus-visible {
  text-decoration: underline;
}

.frosty-emblem {
  max-width: 320px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(15, 81, 50, 0.25);
}

.street-postcode {
  margin: 0;
  color: #6c757d;
}

.street-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.05em;
}

.detail-value {
  font-weight: 600;
}

.street-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-decor {
  font-size: 1.15rem;
  color: #d6336c;
}

.status-pill {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-unassigned .status-pill {
  background-color: var(--status-unassigned);
  color: #212529;
}

.status-assigned .status-pill {
  background-color: var(--status-assigned);
  color: #fff;
}

.status-completed .status-pill {
  background-color: var(--status-completed);
  color: #fff;
}

.status-unassigned {
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.status-assigned {
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.status-completed {
  border-color: rgba(25, 135, 84, 0.35);
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

.border-dashed {
  border: 2px dashed rgba(15, 81, 50, 0.3);
  border-radius: 0.75rem;
}

@media (max-width: 767px) {
  .hero-banner {
    padding: 2rem;
  }

  .hero-emblem {
    font-size: 4rem;
    right: 1.5rem;
    transform: translateY(-70%);
  }

  .phase-section {
    padding: 1rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    border-radius: 1rem;
  }

  .leader-table th,
  .leader-table td {
    min-width: auto;
  }

  .leader-table .form-select,
  .leader-table .btn {
    width: 100%;
  }

  .leader-table .form-select,
  .leader-table select {
    min-width: 10rem;
    font-size: 0.95rem;
  }

  .leader-table .status-col {
    width: 8rem;
  }

  .leader-table .status-col .form-select {
    min-width: 7rem;
  }

  .leader-table .d-flex.gap-2 {
    flex-direction: column;
  }
}
