/* Folder Group Hover Popover */
.tab-group-popover {
  position: fixed;
  z-index: 1500;
  min-width: 280px;
  max-width: 390px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popup);
  overflow: hidden;
  animation: sweetFadeIn 0.12s ease-out;
}

.tab-group-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-group-popover-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tab-group-popover-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-normal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-group-break-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-accent);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.tab-group-break-btn:hover {
  background: rgba(124, 58, 237, 0.28);
  color: var(--text-accent-hover);
}

.tab-group-close-all-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.tab-group-close-all-btn:hover {
  background: rgba(239, 68, 68, 0.24);
  color: #fca5a5;
}

.tab-group-popover-list {
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.tab-group-popover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-normal);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.tab-group-popover-item:hover {
  background: var(--bg-hover);
}

.tab-group-popover-item.active {
  background: var(--bg-active);
  color: var(--text-accent);
  font-weight: 500;
}

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

.tab-group-item-close {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-faint);
  font-size: 14px;
}

.tab-group-item-close:hover {
  color: var(--color-red);
  background: rgba(239, 68, 68, 0.15);
}

/* Reading View Area */
#reading-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 48px 80px 48px;
  scroll-behavior: smooth;
}

#reading-view {
  max-width: 820px;
  margin: 0 auto;
  min-height: 100%;
}

/* Empty State / Welcome Screen */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  gap: 16px;
  padding: 24px;
}

.empty-state h2 {
  color: var(--text-normal);
  font-size: 20px;
  font-weight: 600;
}

.empty-state p {
  max-width: 440px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 8px 18px;
  font-weight: 500;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Status Bar */
#status-bar {
  height: var(--status-height);
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.status-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

