.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-open { background: #dcfce7; color: #166534; }
.badge-full { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-accepted { background: #dcfce7; color: #166534; }
.badge-unplaced { background: #f1f5f9; color: #475569; }

.tab-btn.active {
  border-color: #004aad;
  color: #004aad;
}

/* ---------- Page background ---------- */
.app-bg {
  background: linear-gradient(180deg, #dce5eb 0%, #e8eef3 45%, #f2f6f8 100%);
}

/* ---------- Floating icon background ---------- */
#bg-icons {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  bottom: -15vh;
  left: var(--x, 50%);
  font-size: var(--size, 2rem);
  opacity: var(--opacity, 0.14);
  animation: floatUp var(--duration, 22s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
  filter: grayscale(15%);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-58vh) translateX(var(--drift, 40px)) rotate(180deg);
  }
  100% {
    transform: translateY(-125vh) translateX(0) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-icon {
    animation: none;
    opacity: 0.08;
  }
}

/* ---------- ALP card icon badge ---------- */
.alp-icon-badge {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #e6f7fc, #d0eefa);
  box-shadow: inset 0 0 0 1px rgba(0, 74, 173, 0.15);
}

.badge-new { background: #e0f2fe; color: #075985; }
.badge-old { background: #f1f5f9; color: #475569; }

.alp-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.alp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(0, 74, 173, 0.35);
}

/* ---------- Icon picker ---------- */
.icon-picker-btn {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: background 0.1s ease, box-shadow 0.1s ease;
}
.icon-picker-btn:hover {
  background: #e6f7fc;
}
.icon-picker-btn.selected {
  background: #d0eefa;
  box-shadow: 0 0 0 2px #004aad;
}
