/**
 * ═══════════════════════════════════════════════════════
 * BOTTOM TAB BAR (Mobile)
 * ═══════════════════════════════════════════════════════
 * 
 * iOS-Style Bottom Navigation wie in den Screenshots
 */

/* ─────────────────────────────────────────────────────
   TAB BAR CONTAINER
   ───────────────────────────────────────────────────── */
/* 4 Tabs */
/* .app-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--tabbar-height);
  background: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  z-index: var(--z-sticky);
  padding-bottom: env(safe-area-inset-bottom); 
}*/

/* Bottom Tabs - 5 Items */
.app-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ← GEÄNDERT von 4 auf 5 */
  background: var(--color-white);
  border-top: 1px solid var(--color-light-gray);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-tabs);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tabs-height) + env(safe-area-inset-bottom));
}


/* ─────────────────────────────────────────────────────
   TAB ITEMS
   ───────────────────────────────────────────────────── */

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--spacing-xs) 0;
  color: var(--text-tertiary);
  text-decoration: none;
}

.tab-item:active {
  opacity: 0.5;
}

/* Aktiver Tab */
.tab-item.active {
  color: var(--color-primary);
}

/* ─────────────────────────────────────────────────────
   TAB ICON
   ───────────────────────────────────────────────────── */

.tab-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.tab-item.active .tab-icon {
  transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────
   TAB LABEL
   ───────────────────────────────────────────────────── */

.tab-label {
  font-size: var(--font-size-caption-2);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

/* ─────────────────────────────────────────────────────
   TAB BADGE (Notification Dot)
   ───────────────────────────────────────────────────── */

.tab-item {
  position: relative;
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: var(--radius-round);
  border: 2px solid var(--color-white);
}

/* Mit Zahl */
.tab-badge.with-number {
  width: auto;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  font-size: var(--font-size-caption-2);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
