.topbar {
  height: var(--topbar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.title h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

/* Default Button (Secondary/Ghost) */
.button {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.button:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.button:active:not(:disabled) {
  background: var(--border-light);
}

/* Primary Button */
.button.primary {
  background: var(--bg-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.button.primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.button.primary:active:not(:disabled) {
  background: var(--color-primary-active);
}

/* Danger Button */
.button.danger {
  background: var(--bg-surface);
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.button.danger:hover:not(:disabled) {
  background: #fef2f2; /* Red 50 */
}

.button.danger:active:not(:disabled) {
  background: #fee2e2; /* Red 100 */
}

/* Success Button */
.button.success {
  background: var(--bg-surface);
  color: var(--color-success);
  border-color: var(--color-success);
}

.button.success:hover:not(:disabled) {
  background: #ecfdf5; /* Emerald 50 */
}

.button.success:active:not(:disabled) {
  background: #d1fae5; /* Emerald 100 */
}

/* Warning Button */
.button.warning {
  background: var(--bg-surface);
  color: var(--color-warning);
  border-color: var(--color-warning);
}

.button.warning:hover:not(:disabled) {
  background: #fffbeb; /* Amber 50 */
}

.button.warning:active:not(:disabled) {
  background: #fef3c7; /* Amber 100 */
}

/* Info Button */
.button.info {
  background: var(--bg-surface);
  color: #3b82f6; /* Blue 500 */
  border-color: #3b82f6;
}

.button.info:hover:not(:disabled) {
  background: #eff6ff; /* Blue 50 */
}

.button.info:active:not(:disabled) {
  background: #dbeafe; /* Blue 100 */
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* Removed old styles */

/* ===== 暂停菜单弹窗 ===== */
.pauseMenuDesc {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.pauseMenuActions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.pauseMenuBtn {
  width: 100%;
  height: 40px;
  font-size: 14px;
  justify-content: flex-start;
  padding: 0 var(--space-lg);
}

.pauseInsertActions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: 12px;
}
