/* Admin-Bereich spezifische Styles */
.tabs-wrapper {
  position: relative;
  margin-bottom: 24px;
}
.tabs-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 2px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.tabs-wrapper.scrollable::after { opacity: 1; }

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  width: 100%;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.15s;
  flex-shrink: 0;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Team-Farb-Swatch in Tabellen */
.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
  vertical-align: middle;
}

/* Saison-Timeline */
.season-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.season-item:last-child { border-bottom: none; }
.season-name { font-weight: 600; }
.season-dates { font-size: 12px; color: var(--text-muted); }

/* Benutzerliste */
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

/* Platzverwaltung */
.pitch-surface-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #d1fae5;
  color: #065f46;
}
.pitch-surface-badge.kunstrasen {
  background: #fef3c7;
  color: #92400e;
}

/* Formular-Indikatoren */
.recurring-fields {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
}
.recurring-fields label { color: #0369a1; }

.collision-warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  display: none;
}
.collision-warning.show { display: block; }

/* Aktionen-Spalte in Tabellen */
.actions { display: flex; gap: 6px; }

/* Responsive Admin-Layout */
@media (max-width: 768px) {
  .admin-tab { padding: 8px 14px; font-size: 13px; }
  table { font-size: 12px; }
  th, td { padding: 8px 8px; }
  .actions .btn { padding: 3px 8px; }
}

@media (max-width: 600px) {
  /* Tabellen horizontal scrollbar, damit Aktions-Buttons nicht abgeschnitten werden */
  .card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 0;
  }
  .card .card-header {
    padding: 0 16px 16px;
  }
  .card table {
    min-width: 480px; /* verhindert zu starkes Zusammendrücken */
  }
  th, td { padding: 8px 10px; white-space: nowrap; }
  .actions { flex-wrap: nowrap; }
}
