/* ============================================================
   App-Shell CSS – Haupt-SPA-Layout
   ============================================================ */

/* ── Views (SPA-Übergänge) ───────────────────────────────── */
.view {
  animation: view-in 0.3s ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile-Menü-Button ──────────────────────────────────── */
.mobile-menu-btn {
  display: none;
}

/* ── Sidebar-Overlay (mobile) ────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 150;
}

/* ── User-Menü ───────────────────────────────────────────── */
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.user-menu__name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
}

/* ── Kategorie-Sidebar-Links ─────────────────────────────── */
#sidebarCategories .nav-item {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-4);
}

#sidebarCategories .nav-item:hover {
  color: var(--c-text-secondary);
}

/* ── Tabellen-Status-Badges ──────────────────────────────── */
.status-passed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-correct);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.status-failed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-wrong);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ── Responsive (Mobile) ─────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell__sidebar {
    display: none;
    position: fixed;
    inset: var(--header-h) auto 0 0;
    width: var(--sidebar-w);
    z-index: 200;
    height: auto;
    box-shadow: 4px 0 32px rgba(0,0,0,0.6);
    animation: sidebar-slide-in 0.25s ease;
  }

  @keyframes sidebar-slide-in {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }

  .app-shell__sidebar.open {
    display: block;
  }

  .app-shell__header {
    gap: var(--sp-3);
  }

  .app-shell__main {
    padding: var(--sp-5) var(--sp-4);
  }

  .user-menu__name {
    display: none;
  }
}
