.filter-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
  background: none;
}

.filter-tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.filter-tab--active {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.filter-tab--active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ─── Admin tabs (underline style) ──────── */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.admin-tab:hover { color: var(--color-text); }

.admin-tab--active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* ─── Accordion ──────────────────────────── */
.accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 350ms var(--ease-out);
}

.accordion__body--open {
  max-height: 1000px;
}

/* ─── Capacity bar animated ─────────────── */
.capacity-bar {
  height: 4px;
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.capacity-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-success);
  transition: width 800ms var(--ease-out);
  width: 0%;
}

.capacity-bar__fill[data-pct="100"] { background: var(--color-error); }

/* ─── Pulse (bekleyen başvuru uyarısı) ───── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ─── Dot animation ──────────────────────── */
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%            { transform: scale(1);   opacity: 1; }
}

.loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: dotBounce 1.2s ease-in-out infinite;
  margin: 0 2px;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ─── Admin checkin result flash ─────────── */
.checkin-result {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

.checkin-result--visible {
  opacity: 1;
  pointer-events: auto;
}

.checkin-result--success { background: rgba(22, 101, 52, 0.95); }
.checkin-result--warning { background: rgba(120, 80, 10, 0.95); }
.checkin-result--error   { background: rgba(127, 29, 29, 0.95); }

.checkin-result__icon {
  font-size: 4rem;
  animation: scaleIn 300ms var(--ease-out);
}

.checkin-result__name {
  font-size: var(--text-3xl);
  font-weight: 800;
  text-align: center;
  animation: slideUp 300ms var(--ease-out) 100ms both;
}

.checkin-result__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  animation: slideUp 300ms var(--ease-out) 150ms both;
}
