/* App-Switcher — 9-Punkte-Icon + Dropdown
   Single-Source: logistic-bridge, per cp in cognitive/pricing/geo gespiegelt. */

.apps-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.apps-switcher-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text, #1a1a1a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: background 120ms ease;
}

.apps-switcher-btn:hover,
.apps-switcher-btn[aria-expanded="true"] {
  background: var(--btn-secondary-bg, rgba(0, 0, 0, 0.05));
}

.apps-switcher-btn svg {
  width: 20px;
  height: 20px;
}

.apps-switcher-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 200;
  display: none;
}

.apps-switcher-menu[data-open="true"] { display: block; }

.apps-switcher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text, #1a1a1a);
  font-size: 14px;
  font-weight: 500;
}

.apps-switcher-item:hover { background: var(--btn-secondary-bg, rgba(0, 0, 0, 0.05)); }
.apps-switcher-item.is-active { background: var(--accent-soft, rgba(26, 163, 232, 0.12)); }

.apps-switcher-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent, #1aa3e8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Mobile: App-Switcher-Items im Drawer als Top-Level-Section vor den Tool-Tabs.
   Wird in shared.css-Drawer-Pattern eingehängt — JS rendert die gleichen Items
   sowohl im Dropdown als auch im Drawer. */
@media (max-width: 900px) {
  .apps-switcher-menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: block;
  }
  .apps-switcher-item { padding: 12px 16px; font-size: 15px; }
}
