/* === Topbar === */

/* ============== 右侧面板 & 顶部工具栏 ============== */
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.top-bar {
  height: 40px;
  min-height: 40px;
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.top-bar-left {
  flex: 1;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-btn {
  padding: 6px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--neutral-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.top-bar-btn:hover {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.top-bar-divider {
  width: 1px;
  height: 20px;
  background: var(--neutral-200);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--neutral-600);
}

/* App Switcher */
.app-switcher {
  position: relative;
}

.app-switcher-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid var(--neutral-200);
  padding: 4px 0;
  z-index: 200;
}

.app-switcher-menu.hidden {
  display: none;
}

.app-menu-title {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--neutral-700);
  text-decoration: none;
  transition: background 0.15s;
}

.app-menu-item:hover {
  background: var(--neutral-50);
}

.app-menu-item.active {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
}

.app-menu-item .check-icon {
  margin-left: 0;
}

/* 调整 main-content 填满剩余空间 */
.right-panel .main-content {
  flex: 1;
  overflow: hidden;
}

/* ==================== 面包屑 ==================== */
.breadcrumb { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--neutral-500); overflow: hidden; }
.breadcrumb-link { color: var(--neutral-500); text-decoration: none; white-space: nowrap; }
.breadcrumb-link:hover { color: var(--primary-500); }
.breadcrumb-sep { margin: 0 2px; color: var(--neutral-400); }
.breadcrumb-current { color: var(--neutral-800); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==================== 汉堡菜单 ==================== */
.hamburger-btn { display: none; }
