/* ============================================================
   TAB BAR — E95674 / 9E53E4 Dark Theme
============================================================ */
.tab {
  width: 100%;
  height: 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0;
  user-select: none;
  flex-shrink: 0;
  z-index: 2;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tab::-webkit-scrollbar { display: none; }

.tab .tab-item {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 100%;
  cursor: pointer;
  min-width: 60px;
  width: 190px;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #606060;
  border-right: 1px solid #1e1e1e;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-family: 'Syne', 'IBM Plex Mono', sans-serif;
  position: relative;
  transition: color 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
  gap: 6px;
  background: var(--bg-overlay);
}

/* Active tab — gradient top bar */
.tab .tab-item.active {
  background: var(--bg-hover);
  color: #f0f0f0;
}
/* 
.tab .tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E95674, #9E53E4);
} */

.tab .tab-item:not(.active):hover {
  background: var(--bg-overlay);
  color: #a0a0a0;
}

.tab .tab-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab .tab-close {
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  color: #606060;
  transition: opacity 0.12s ease, color 0.12s ease;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab .tab-item:hover .tab-close,
.tab .tab-item.active .tab-close {
  opacity: 0.5;
}

.tab .tab-close:hover {
  opacity: 1 !important;
  color: #E95674;
  background: rgba(233, 86, 116, 0.1);
}